U4-7285 - Every server that reads a instruction from umbracoCacheInstruction will also write the same instruction to the database. Intentional ?

Created by Albin Johannesen 21 Oct 2015, 13:44:00 Updated by Stephan 28 Oct 2015, 18:38:41

See this thread: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72251-flexible-load-balancing-with-read-only-front-end-servers#comment-232150

I have 3 servers (Master, Slave1, Slave2). When I Publish a node on Master a instruction gets inserted to umbracoCacheInstruction. Both Slaves will then try to read the instructions and durning that process a batchmessage gets added to the httpcontext and then read by flushBatch(). This causes the slaves to also write the instructions they read to the database. Conclusion: 3 instructions will be written to umbracoCacheInstruction.

I am not sure if this is intentional, but this will prevent Slaves from running with read-only Database Access using the guide "Advanced techniques with Flexible Load Balancing". https://github.com/umbraco/UmbracoDocs/blob/master/Getting-Started/Setup/Server-Setup/Load-Balancing/flexible-advanced.md

Comments

Shannon Deminick 27 Oct 2015, 18:25:27

PR is here for review task: https://github.com/umbraco/Umbraco-CMS/pull/842


Stephan 28 Oct 2015, 18:38:37

Merged, is 84db2f4d853d181d86e7a81b5fe0bf41e618b065


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.3.0

Due in version: 7.3.1

Sprint: Sprint 2

Story Points:

Cycle: