Guest User

Untitled

a guest
Oct 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. Conversation with Артем Гавриченков on Пнд 29 Авг 2011 15:16:11:
  2. (15:16:21) Урвачев Илья:
  3. Тем, ты тут?
  4. (15:19:01) Артем Гавриченков:
  5. Да
  6. (15:19:22) Урвачев Илья:
  7. в почте есть письмо насчет Issues 2.0 ?
  8. (15:19:46) Артем Гавриченков:
  9. Нет
  10. (15:20:13) Урвачев Илья:
  11. переслал
  12.  
  13. ---
  14.  
  15.  
  16. (15:09:14) Урвачев Илья:
  17. // Stratege2:
  18. // 0. Init
  19. // 1. get local master record
  20. // 1. connection
  21. // 1. error -> 4.3. RedisError
  22. // 1. success -> 1.
  23. // 1. Who am I?
  24. // 1. local redis is master -> 2.
  25. // 2. local redis is slave -> 3.
  26. // 3. local redis status unknown -> 2.
  27. // 2. Master actions: confirm from other (round robin)
  28. // 1. other unreacheble -> 2.
  29. // 2. others master is me -> 4.4. (OK)
  30. // 3. others master is not me -> 4.2. (SetNewMaster)
  31. // 3. Slave actions (check master)
  32. // 1. master is dead -> 4.1. (ReSync)
  33. // 2. master is alive (cheking master records)
  34. // 1. LM==MM -> 4.4. (OK)
  35. // 2. LM!=MM -> 4.2. (SetNewMaster)
  36. // 4. Misc actions
  37. // 1. ReSync
  38. // 1. find next alive master (side-by-side selection)
  39. // 1. not found -> WOOT? even our local redis is dead -> 4.3. RedisError
  40. // 2. Push to others new master and setup replication
  41. // 2. SetNewMaster
  42. // 1. check new master status
  43. // 1. error -> 4.1. ReSync
  44. // 2. do work 4.1.2.
  45. // 3. RedisError
  46. // 1. throw HTTP 555 error code or throw exception (depends from environment)
  47. // 2. die
  48. // 4. OK
  49. // 1. do rediska setup
  50. // 2. let code-flow beginConversation with Артем Гавриченков on Пнд 29 Авг 2011 15:16:11:
  51. (15:16:21) Урвачев Илья:
  52. Тем, ты тут?
  53. (15:19:01) Артем Гавриченков:
  54. Да
  55. (15:19:22) Урвачев Илья:
  56. в почте есть письмо насчет Issues 2.0 ?
  57. (15:19:46) Артем Гавриченков:
  58. Нет
  59. (15:20:13) Урвачев Илья:
  60. переслал
  61.  
  62. ---
  63.  
  64.  
  65. (15:09:14) Урвачев Илья:
  66. // Stratege2:
  67. // 0. Init
  68. // 1. get local master record
  69. // 1. connection
  70. // 1. error -> 4.3. RedisError
  71. // 1. success -> 1.
  72. // 1. Who am I?
  73. // 1. local redis is master -> 2.
  74. // 2. local redis is slave -> 3.
  75. // 3. local redis status unknown -> 2.
  76. // 2. Master actions: confirm from other (round robin)
  77. // 1. other unreacheble -> 2.
  78. // 2. others master is me -> 4.4. (OK)
  79. // 3. others master is not me -> 4.2. (SetNewMaster)
  80. // 3. Slave actions (check master)
  81. // 1. master is dead -> 4.1. (ReSync)
  82. // 2. master is alive (cheking master records)
  83. // 1. LM==MM -> 4.4. (OK)
  84. // 2. LM!=MM -> 4.2. (SetNewMaster)
  85. // 4. Misc actions
  86. // 1. ReSync
  87. // 1. find next alive master (side-by-side selection)
  88. // 1. not found -> WOOT? even our local redis is dead -> 4.3. RedisError
  89. // 2. Push to others new master and setup replication
  90. // 2. SetNewMaster
  91. // 1. check new master status
  92. // 1. error -> 4.1. ReSync
  93. // 2. do work 4.1.2.
  94. // 3. RedisError
  95. // 1. throw HTTP 555 error code or throw exception (depends from environment)
  96. // 2. die
  97. // 4. OK
  98. // 1. do rediska setup
  99. // 2. let code-flow begin
Add Comment
Please, Sign In to add comment