0

Good afternoon everyone. I am having problems regarding the magento cache This is configured magento 2.2.5 + varnish-5.0.0 + redis 3.2.6 The site is loaded both admin and frontend but is loaded unconfigured. Opening the site chrome+F12 I noticed that some files are not loaded displaying status 503 but when I click with the right mouse and choose to open in new tab the file is opened but sometimes 503 error occurs in varnish

Follow the varnish and redis settings

/lib/systemd/system/varnish.service
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,2G -p thread_pools=4 -p thread_pool_max=1500 -p connect_timeout=300 -p http_resp_hdr_len=65536 -p http_resp_size=98304

/etc/default/varnish

DAEMON_OPTS="-a :80 \  
             -T localhost:6082 \  
             -f /etc/varnish/default.vcl \  
             -p thread_pools=4 \  
             -p thread_pool_max=1500 \  
             -p connect_timeout=300 \  
             -p http_resp_hdr_len=65536 \  
             -p http_resp_size=98304 \  
             -S /etc/varnish/secret \  
             -s malloc,2G"  

Redis-server configuration
/var/www/html/magento2/app/etc/env.php

'cache' => [  
    'frontend' => [  
        'default' => [  
            'backend' => 'Cm_Cache_Backend_Redis',  
            'backend_options' => [  
                'server' => '127.0.0.1',  
                'port' => '6379',  
                'persistent' => '',  
                'database' => '0',  
                'force_standalone' => '0',  
                'connect_retries' => '1',  
                'read_timeout' => '10',  
                'automatic_cleaning_factor' => '0',  
                'compress_data' => '1',  
                'compress_tags' => '1',  
                'compress_threshold' => '20480',  
                'compression_lib' => 'gzip'  
            ]  
        ],  
        'page_cache' => [  
            'backend' => 'Cm_Cache_Backend_Redis',  
            'backend_options' => [  
                'server' => '127.0.0.1',  
                'port' => '6379',  
                'persistent' => '',  
                'database' => '1',  
                'force_standalone' => '0',  
                'connect_retries' => '1',  
                'read_timeout' => '10',  
                'automatic_cleaning_factor' => '0',  
                'compress_data' => '0',  
                'compress_tags' => '1',  
                'compress_threshold' => '20480',  
                'compression_lib' => 'gzip'  
            ]  
        ]  
    ]  
],  
'system' => [  
    'default' => [  
        'dev' => [  
            'debug' => [  
                'debug_logging' => '0'  
            ]  
        ]  
    ]  
]  

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.