MClient
: Programming framework, MPF4MMClusterAgent
: Edge Cluster Agent for gathering information of edges and accepting requests fromMServer
MContainerMetricsCollector
: 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_HOME
to java 8 mvn package
. A runnable*.jar
file 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-test
withkubectl create namespace kube-test
It works like the default eureka server.
- modify
yaml/template.yaml
- the envs
MCLUSTER_IP
andMCLUSTER_PORT
should be the ip and port of yourMEurekaServer
- the mount path of
log-volume
could 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.yaml
exists - deploy
logstash
,elasticsearch
. Make sureelasticsearch
is configured correctly so that logstash could send data to it - On each server nodes, export environment variables
MCLIENT_LOGSTASH_IP
andMCLIENT_LOGSTASH_PORT
to the ip and port oflogstash
- run log collector in
MInfoCollector/target/
- modify
application.yaml
mclientagent.server.ip/port
: ip and port of theMServer
mclientagent.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.MRegisterNodesBean
incommon
. Send Post request with json data toMServer
-/mserver/registerNodes
- service descriptions: please refer to
com.septemberhx.common.bean.server.MRegisterServicesBean
incommon
. Send Post request with json data toMServer
-/mserver/registerServices