[ https://issues.apache.org/jira/browse/KYLIN-4834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17245691#comment-17245691 ]
Yaqian Zhang commented on KYLIN-4834: ------------------------------------- Hi: According to my understanding and test, if there are multiple job server in your kylin cluster, no matter which job server you submit the build job to, no matter whether this job server is a leader or not, the job will be dispatched and executed by the leader job server. That is to say, there is not need to do API forwarding, you can attach all of the servers to your LoadBalancer without caring about which one is the leader job server. The leader job server will schedule the jobs submitted by all job server in kylin cluster. I don't know if my understanding is correct. This is my email: yaqian_zh...@126.com. You can contact me by email. > Auto forward the job API request to the available leader job server > ------------------------------------------------------------------- > > Key: KYLIN-4834 > URL: https://issues.apache.org/jira/browse/KYLIN-4834 > Project: Kylin > Issue Type: Wish > Components: Others > Reporter: yoonsung.lee > Priority: Minor > > Hi. I'm yoonsung.lee developing & operating the statistical storage using > Kylin in LINE Advertising dept. > h1. Current Situation > I understand there is only one active leader job server instance in a Kylin > cluster. > The leader job server is selected by Zookeeper if there are multiple active > job servers in a Kylin cluster. > This is my pain point. > When my leader job server has a fault or shutdown, I want to change the > leader job server automatically and the DNS server route the traffic to the > changed one. > In this case, I should know which one is the leader job server as soon as > possible the leader(active) has changed. > For this one, I try to watch the path of Zookeeper in which the Kylin server > maintains the server list in a cluster. > But, this approach has a fault in essence. It's not an implementation > controlled by Kylin. > h1. Question > Is my approach appropriate for the Kylin cluster? > If not, is there any better idea for fault tolerance of job servers with auto > DNS or LoadBalancer mapping? > h1. Suggestion > So, I suggest this idea. > Any server in a Kylin cluster forwards the API request to the leader job > server in the case that the request should be done by the job server and pass > valid authentication. If then, I just attach all of the servers to my > LoadBalancer without caring about which one is the leader job server. > * Could this feature be harmful or have side-effects? -- This message was sent by Atlassian Jira (v8.3.4#803005)