Sample Header Ad - 728x90

Varnish - multiple backends for one site

2 votes
1 answer
461 views
Is possible with Varnish configure multiple backends for one site? For example I have high avalibility site with multiple backends. For example I have site www.goodies.com which is running on php 5.6. So I have 3 www-nodes as backend www-node5.6a www-node5.6b www-node5.6c I have configured backends in Varnish like this: backend www-node5.6a { .host = "10.0.0.11"; .port = "80"; .connect_timeout = 6000s; .first_byte_timeout = 6000s; .between_bytes_timeout = 6000s; } backend www-node5.6b { .host = "10.0.0.12"; .port = "80"; .connect_timeout = 6000s; .first_byte_timeout = 6000s; .between_bytes_timeout = 6000s; } backend www-node5.6c { .host = "10.0.0.13"; .port = "80"; .connect_timeout = 6000s; .first_byte_timeout = 6000s; .between_bytes_timeout = 6000s; } my question is, how to configure Varnish so user will be randomly use to any of this backends for this specific one site?
Asked by Delirium (378 rep)
Mar 27, 2019, 02:48 PM
Last activity: Mar 27, 2019, 03:38 PM