{"id":1756,"date":"2019-11-27T09:34:33","date_gmt":"2019-11-27T08:34:33","guid":{"rendered":"https:\/\/www.combell.com\/nl\/help\/?post_type=ht_kb&#038;p=1756"},"modified":"2021-04-13T15:37:30","modified_gmt":"2021-04-13T13:37:30","slug":"performance-hosting-met-drupal","status":"publish","type":"ht_kb","link":"https:\/\/www.combell.com\/nl\/help\/kb\/performance-hosting-met-drupal\/","title":{"rendered":"Performance hosting met Drupal"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tDit artikel is geoptimaliseerd voor Drupal 7    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>Drupal is een van de populairste content management systemen. Het kan, mits wat optimalisering, zowel grote als kleine websites aan. Dit artikel zal je helpen om jouw CMS klaar te maken om grote hoeveelheden verkeer aan te kunnen, zonder aan snelheid in te boeten.<\/p>\n<p><a href=\"https:\/\/www.combell.com\/nl\/help\/kb\/hoe-kan-ik-mijn-drupal-snelheid-optimaliseren\/\">Het eerste deel van dit artikel zal je standaard optimalisatie technieken tonen<\/a>, die geschikt zijn voor elke hosting, zelfs wanneer je geen gebruik maakt van caching opties.<\/p>\n<p>Pas nadat je de algemene optimalisatie volledig uitgevoerd hebt, kan je beginnen aan dit tweede deel, dat je toont hoe uw CMS kan profiteren van de Performance hosting tools.<\/p>\n<p>&nbsp;<\/p>\n<h4 id=\"inhoudsopgave\">IN DIT ARTIKEL:<\/h4>\n<ul>\n<li><a href=\"#h21\">Redis configuratie<\/a><\/li>\n<li><a href=\"#h22\">Uitvoeren<\/a><\/li>\n<\/ul>\n<p><a name=\"h2\"><\/a><\/p>\n<h2>Redis configuratie<\/h2>\n<ol>\n<li><a href=\"https:\/\/www.combell.com\/nl\/help\/kb\/hoe-kan-ik-caching-opties-activeren\/\">Activeer een Redis instantie op het hosting pakket in kwestie via jouw controlepaneel.<\/a><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4245\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal1-300x199.png\" alt=\"\" width=\"300\" height=\"199\" \/><\/li>\n<li>Installeer Redis via drush cli van de SSH jail. Navigeer naar de root (~\/www\/[drupal]\/) map en voer het volgende commando uit:\n<pre><code>drush en -y redis\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4246\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal2-300x93.png\" alt=\"\" width=\"300\" height=\"93\" \/><\/li>\n<li>Installeer Predis via git vanuit the SSH jail:\n<pre><code>cd ~\/www\/[drupal]\/sites\/all\/libraries\/\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4247\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal3-300x23.png\" alt=\"\" width=\"300\" height=\"23\" \/><\/p>\n<ol>\n<li>Open https:\/\/github.com\/nrk\/predis in een web browser.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4248\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal4.png\" alt=\"\" width=\"108\" height=\"53\" \/><\/li>\n<li>Kopieer de inhoud van het HTTPS kloon URL veld naar jouw klembord.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4249\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal5-300x38.png\" alt=\"\" width=\"300\" height=\"38\" \/><\/li>\n<li>Vul nu het volgende commando in:\n<pre><code>git init\n\ngit clone **plak de inhoud van jouw klembord**\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4250\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal6-300x47.png\" alt=\"\" width=\"300\" height=\"47\" \/><\/li>\n<li>Er zal nu een Predis map staan in www\/sites\/all\/libraries\/<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4251\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal7-300x20.png\" alt=\"\" width=\"300\" height=\"20\" \/><\/li>\n<\/ol>\n<\/li>\n<li>Pas settings.php aan door deze code onderaan het bestand toe te voegen:\n<pre><code>nano ~\/www\/[drupal]\/sites\/default\/settings.php\n\n$conf['redis_client_interface'] = 'Predis';\n$conf['redis_client_host'] = 'IP ADRESS VAN DE REDIS INSTANTIE';\n$conf['redis_client_port'] = 'POORT VAN DE REDIS INSTANTIE';\n$conf['redis_client_password'] = 'PASWOORD VAN DE REDIS INSTANTIE';\n$conf['lock_inc'] = 'sites\/all\/modules\/redis\/redis.lock.inc';\n$conf['cache_backends'][] = 'sites\/all\/modules\/redis\/redis.autoload.inc';\n$conf['cache_default_class'] = 'Redis_Cache';\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4252\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal8-300x27.png\" alt=\"\" width=\"300\" height=\"27\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4253\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal9-300x165.png\" alt=\"\" width=\"300\" height=\"165\" \/><\/li>\n<li>Test nu de connectie naar de Redis server vanuit de SSH jail.Zo doe je dit:\n<ol>\n<li>De Redis-cli is nu beschikbaar op de gedeelde SSH jails. Je moet de SSH resetten om die te kunnen gebruiken. Zodra je dit gedaan hebt, kan je Redis-cli gebruiken.<\/li>\n<li>In dit voorbeeld gebruik ik het IP 255.255.255.0; poort 10000 en het wachtwoord PASS\n<pre><code>redis-cli -h 255.255.255.0 -p 10000\n255.255.255.0:10000&gt; AUTH PASS\nOK\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4254\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal10-300x30.png\" alt=\"\" width=\"300\" height=\"30\" \/><\/li>\n<\/ol>\n<p><a name=\"h22\"><\/a><\/p>\n<h2>Commando&#8217;s uitvoeren<\/h2>\n<p>Je kan nu de Redis commando&#8217;s uitvoeren.<\/p>\n<p>Om te kijken of er keys aanwezig zijn in deze Redis instantie, geef je het volgende commando:<\/p>\n<pre><code> 255.255.255.0:10000&gt; keys *\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4255\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal11-300x104.png\" alt=\"\" width=\"300\" height=\"104\" \/><\/p>\n<p>Om bijvoorbeeld te zien hoeveel MB gebruikt wordt, geef je dit commando:<\/p>\n<pre><code> 255.255.255.0:10000&gt; info\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4256\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal12-300x148.png\" alt=\"\" width=\"300\" height=\"148\" \/><\/p>\n<p>Om te zien of de database aangroeit wanneer je op verschillende plekken in de site klikt, geef je volgend commando:<\/p>\n<pre><code> 255.255.255.0:10000&gt; dbsize\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4257\" src=\"https:\/\/www.combell.com\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Drupal13.png\" alt=\"\" width=\"208\" height=\"30\" \/><\/p>\n<p>Je kan de Redis-cli verlaten met CTRL + C<\/p>\n<hr \/>\n<p>Je vindt een <a href=\"http:\/\/redis.io\/commands\" target=\"_blank\" rel=\"noopener\">lijst met de commando&#8217;s op de site van Redis<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Drupal is een van de populairste content management systemen. Het kan, mits wat optimalisering, zowel grote als kleine websites aan. Dit artikel zal je helpen om jouw CMS klaar te maken om grote hoeveelheden verkeer aan te kunnen, zonder aan snelheid in te boeten. Het eerste deel van dit artikel&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/ht-kb\/1756"}],"collection":[{"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/comments?post=1756"}],"version-history":[{"count":3,"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/ht-kb\/1756\/revisions"}],"predecessor-version":[{"id":4715,"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/ht-kb\/1756\/revisions\/4715"}],"wp:attachment":[{"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/media?parent=1756"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1756"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.combell.com\/nl\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}