You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/06/10 14:11:30 UTC

[GitHub] [dolphinscheduler] Issues-translate-bot commented on issue #4355: [Feature][Master+API+Scheduler] Propose for master refactor and scheduler module

Issues-translate-bot commented on issue #4355:
URL: https://github.com/apache/dolphinscheduler/issues/4355#issuecomment-858657089


    
   > Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ         
   ----    
   
   About the Scheduler module
   This is indeed a better solution, which can well remove the zk lock and reduce the number of database polls, but at the same time the HA mode is also a single point of work mode. When the number of cmd is large, the distribution of cmd will It is the bottleneck point, so we consider implementing a truly decentralized distributed design to realize the processing of cmd.
   
   We consider another option:
    Hash allocation cmd, remove scheduler
    
   1. When the master starts, it calculates its own slot number according to zk and configuration file (slot configuration), which may be more than one
   2. The master takes cmd from db according to its own masterIds, and takes the remainder according to cmdId, and only takes cmd that matches the slot.
   3. Master online and offline processing (master1=m1, master2=m2)
       1. m1 is online, first calculate its own masterIds, and then start to take the task to execute
       2. After m2 goes online, m1 obtains a global lock after receiving the message that m2 goes online, stops fetching cmd, recalculates its own masterIds, and synchronizes messages to all masters
       3. After receiving the message, other masters stop fetching cmd, recalculate their own masterIds, and reply the result to m1 synchronously
       4. After m1 confirms that all masters have responded, it will synchronize a message to all masters, start to fetch a new cmd, and release the global lock
       5. If m1 receives a response timeout or fails, it needs to re-execute the operation of synchronizing all masters.
       6. If m3/m4 receives a message that has already been processed, skip the processing flow.  
         


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org