Skip to content
/ dms Public

A docker instances manage system like k8s write in java/groovy, including web ui.

License

Notifications You must be signed in to change notification settings

segment11/dms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dms

A docker instances manage system like k8s write in java/groovy, including web ui.

Features

  • docker instance management
  • host machine process management
  • web ui
  • work node init
  • application configuration files are generated by groovy template
  • stateful application support
  • hpa
  • A/B tests
  • traefik http gateway like k8s ingress
  • metrics collect by prometheus, auto reload jobs like k8s service monitor
  • log collect by vector and open observe
  • plugins support like k8s operator
  • multi-region worker node support by underlay network

Architecture

dms server agent overview

dms server agent overview

dms server agent modules

dms server agent modules

create container/process steps

create container/process steps

dms build-in plugins

dms build-in plugins

Quick start

run dms server

prepare conf.properties

# change here
dbDataFile=/data/dms/db;FILE_LOCK=SOCKET

run in docker

  • docker run -d --name dms_server --net=host -v /opt/log:/opt/log -v /data/dms:/data/dms -v $pwd/conf.properties:/opt/dms/conf.properties -e ADMIN_PASSWORD=123456 -e LOCAL_IP_FILTER_PRE=192. key232323/dms_server:1.2.0
  • open http://your-ip:5010/admin/login.html user/password -> admin/abc

or run by compiling from source

TIPS: Need jdk17+/gradle7+

  • cd ~/ws
  • git clone git@github.com:segment11/dms.git
  • cd ~/ws/dms/dms_agent
  • gradle tar
  • cd ~/ws/dms/dms
  • gradle buildToRun
  • cd ~/ws/dms/dms/build/libs & java -cp . -jar dms_server-1.2.jar
  • open http://your-ip:5010/admin/login.html user/password -> admin/abc

run dms agent

prepare conf.properties

# change here
serverHost=dms_server_ip
serverPort=5010
clusterId=1
secret=1
collectDockerDaemon=1
server.runtime.jar=1

run in docker

  • docker run -d --name dms_agent --cpu-period 1000000 --cpu-quota 250000 --net host -v /opt/log:/opt/log -v /opt/dms/config:/opt/dms/config -v /var/run/docker.sock:/var/run/docker.sock -v $pwd/conf.properties:/opt/dms_agent/conf.properties key232323/dms_agent:1.2.0

or run by compiling from source

TIPS: Need jdk17+

  • cd ~/ws/dms/dms_agent/build/libs
  • java -Djava.library.path=. -cp . -jar dms_agent-1.2.jar

Screenshots

  • cluster overview

cluster overview

  • cluster container overview by node ip

cluster container overview

  • worker node init

node init deploy

  • node cpu stats

node chart

  • application list

application list

  • one application container list

application one

  • one application event list

application event list

  • job steps log

job steps

Author contact

About

A docker instances manage system like k8s write in java/groovy, including web ui.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published