Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0
    • None
    • zeppelin-server
    • None

    Description

      Cluster management server

      The cluster management server uses the Raft algorithm library Atomix to form a service cluster with consistent service status in the Zeppelin cluster.

      1. The cluster management service runs in each Zeppelin-Server;
      1. The cluster management service establishes a cluster by using the copycatServer class of the Raft algorithm library, maintains the ClusterStateMachine, and manages the service state metadata of each Zeppelin-Server through the PutCommand, GetQuery, and DeleteCommand operation commands.
      1. Launch the Thrift service in the cluster management service to enable the cluster interpreter process to be created by remote calls in each Zeppelin-Server;

      Cluster management client

      The cluster management client connects to the cluster management server for metadata operations of services and processes through the Raft algorithm library Atomix.

      1. The cluster management client runs in each Zeppelin-Server and Zeppelin Interpreter process;
      1. The cluster management client manages the Zeppelin-Server and Zeppelin Interpreter process state (metadata information) in the ClusterStateMachine by using the copycatClient class of the Raft library to connect to the copycatServer. When the Zeppelin-Server and Zeppelin Interpreter processes are started, They are added to the ClusterStateMachine and are removed from the ClusterStateMachine when the Zeppelin-Server and Zeppelin Interpreter processes are closed.
      1. In a distributed environment, network anomalies, network delays, or service exceptions may occur. After copycatClient submits metadata to the cluster, it checks whether the submission is successful. After the submission fails, the metadata is saved in the local message queue. Retrying by copycatClient through a separate commit thread;

      Cluster monitoring module

      The cluster monitoring module checks if each Zeppelin-Server and Zeppelin Interpreter process in the cluster is active

      1. The cluster monitoring module runs in each Zeppelin-Server and Zeppelin Interpreter process, periodically sending heartbeat data of the service or process to the cluster;
      1. When the cluster monitoring module runs in Zeppelin-Server, it collects the CPU and MEMORY usage of the server, and sends the resource usage rate to the cluster's ClusterStateMachine. When the cluster interpreter process needs to be created, the server is idle from the resource. Created in ;
      1. Resource usage statistics strategy, in order to avoid the instantaneous high peak and low peak of the server, the cluster monitoring will collect the average resource usage in the most recent period for reporting, and improve the reasonable line and effectiveness of the server resources as much as possible;
      1. When the cluster monitoring module runs in Zeppelin-Server, it checks the heartbeat data of each Zeppelin-Server and Zeppelin Interpreter process. If it times out, it considers that the service or process is abnormally unavailable and removes it from the cluster.

      Attachments

        Activity

          People

            liuxun323 Xun Liu
            liuxun323 Xun Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h