Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 819 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 819 Bytes

SPOF

This directory contains bad exaple of application architecture with dictionaries on a separated instance.

How to start:

cartridge build
cartridge start -d
cartridge replicasets setup --bootstrap-vshard

You will see WebUI on http://localhost:8081.

Roles code is in app/roles folder.

How to fix?

  • Select roles app.roles.dictionary on router

OR

  • Add replicas to dictionary replicaset
  • Change function app.roles.api.get_employees_by_salary:
    local connection = assert(cartridge_rpc.get_connection('app.roles.dictionary', {leader_only = false}))
    local deps_data = connection:call('select', department_ids)
  • (Optional) add ALL_RW to this replicaset or make space box.space.departments synchronious:
    box.space.departments:alter{is_sync = true}