MClient: Programming framework, MPF4MMClusterAgent: Edge Cluster Agent for gathering information of edges and accepting requests fromMServerMContainerMetricsCollector: Container Metrics collector. It is responsible for collecting CPU, RAM usages.MEurekaServer: A modified version of eurekaMGateway: Accept requests from usersMInfoCollector: Collect the logs on each edge nodesMServer: Orchestrator on the cloud
- export
JAVA_HOMEto java 8 mvn package. A runnable*.jarfile should exist in*/target/
- deploy Kubernetes
- label each node with
node=XXX. Replace XXX with the real node id - make sure that the kubectl proxy server is running on the default port
- create a namespace named
kube-testwithkubectl create namespace kube-test
It works like the default eureka server.
- modify
yaml/template.yaml - the envs
MCLUSTER_IPandMCLUSTER_PORTshould be the ip and port of yourMEurekaServer - the mount path of
log-volumecould be changed to other places. All the logs generated by each instances are saved in it
- On each server nodes, make sure log directory in
yaml/template.yamlexists - deploy
logstash,elasticsearch. Make sureelasticsearchis configured correctly so that logstash could send data to it - On each server nodes, export environment variables
MCLIENT_LOGSTASH_IPandMCLIENT_LOGSTASH_PORTto the ip and port oflogstash - run log collector in
MInfoCollector/target/
- modify
application.yamlmclientagent.server.ip/port: ip and port of theMServermclientagent.elasticsearch.ip/port: ip and port of theelasticsearch
- deploy it on the main node of your kubernetes cluster
modify application.yaml, rebuild, and run.
Deploy on the nodes you want. env MCLUSTER_IP and MCLUSTER_PORT are needed for the ip and port of MClusterAgent.
- server descriptions: please refer to
com.septemberhx.common.bean.server.MRegisterNodesBeanincommon. Send Post request with json data toMServer-/mserver/registerNodes - service descriptions: please refer to
com.septemberhx.common.bean.server.MRegisterServicesBeanincommon. Send Post request with json data toMServer-/mserver/registerServices