Console

How To Start Console

Start a Console process by execute the server binary of ChubaoFS you built with -c argument and specify configuration file.

nohup cfs-server -c console.json &

Configurations

Properties
Key Type Description Mandatory
role string Role of process and must be set to console Yes
logDir string Path for log file storage Yes
logLevel string Level operation for logging. Default is error No
listen string Port of TCP network to be listen, default is 80 Yes
masterAddr string slice Addresses of master server Yes
objectNodeDomain string object domain for sign url for down Yes
master_instance string the tag for monitor Yes
monitor_addr string Prometheus the address Yes
dashboard_addr string console menu forward to Grafana Yes
monitor_app string the tag for monitor, it same as master config Yes
monitor_cluster string the tag for monitor, it same as master config Yes

Example:

{
  "role": "console",
  "logDir": "/cfs/log/",
  "logLevel": "debug",
  "listen": "80",
  "masterAddr": [
    "192.168.0.11:17010",
    "192.168.0.12:17010",
    "192.168.0.13:17010"
  ],
  "master_instance": "192.168.0.11:9066",
  "monitor_addr": "http://192.168.0.102:9090",
  "dashboard_addr": "http://grafana.chubao.io",
  "monitor_app": "cfs",
  "monitor_cluster": "spark"
}

Notice

  • add 127.0.0.1 console.chubao.io grafana.chubao.io in /etc/hosts
  • you can visit it by http://127.0.0.1:80
  • in console default user is root default password is ChubaoFSRoot