Score:2

drush cr on replicated servers

in flag

I am the administrator of a Drupal site replicated on 4 servers, behind a load balancer. There is only one database that is shared by the 4 instances. When I run drush cr, is it necessary to run it on each of the 4 nodes, or is it enough to run it on only one?

leymannx avatar
ne flag
Are there 4 databases? Then it needs to run 4 times.
richirm avatar
in flag
All 4 nodes point to the same database.
cn flag
It depends where the cache is stored. If it's in the single shared database, running drush on one server is probably enough.
richirm avatar
in flag
Where do you have to look to find out where the cache is being stored? Thanks.
leymannx avatar
ne flag
As you said, all 4 nodes point to the same database. Caches are in there. So running it once is sufficient.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.