1. 概要

rbd-eventlog负责跟踪操作事件,处理应用、操作和监控日志信息。提供websockt服务实时推送日志信息。

2. 启动参数

  1. Usage of /run/rainbond-eventlog:
  2. --cluster Whether open cluster mode (default true)
  3. --cluster.bind.ip string Cluster communication to listen the IP (default "0.0.0.0")
  4. --cluster.bind.port int Cluster communication to listen the Port (default 6365)
  5. --cluster.instance.ip string The current instance IP in the cluster can be communications.
  6. --db.pool.maxsize int Data persistence db pool max size. (default 10)
  7. --db.pool.size int Data persistence db pool init size. (default 3)
  8. --db.type string Data persistence type. (default "mysql")
  9. --db.url string Data persistence db url. (default "root:admin@tcp(127.0.0.1:3306)/event")
  10. --discover.etcd.addr stringSlice set all etcd server addr in cluster for message instence auto discover. (default [http://127.0.0.1:2379])
  11. --discover.etcd.homepath string etcd home key (default "/event")
  12. --discover.etcd.pass string etcd server user password
  13. --discover.etcd.user string etcd server user info
  14. --discover.type string the instance in cluster auto discover way. (default "etcd")
  15. --docker.log.homepath string container log persistent home path (default "/grdata/logs/")
  16. --dockerlog.bind.ip string Collect the log service to listen the IP (default "0.0.0.0")
  17. --dockerlog.bind.port int Collect the log service to listen the Port (default 6362)
  18. --dockerlog.cache int the docker log server cache the receive message size (default 200)
  19. --dockerlog.mode string the server mode zmq or stream (default "stream")
  20. --dockermessage.cache.number int Maintain log the largest number in the memory peer docker service (default 512)
  21. --eventlog.bind.ip string Collect the log service to listen the IP (default "0.0.0.0")
  22. --eventlog.bind.port int Collect the log service to listen the Port (default 6366)
  23. --eventlog.cache int the event log server cache the receive message size (default 100)
  24. --log.level string app log level (default "info")
  25. --log.path string app log output file path.it is effective when log.type=file (default "/var/log/")
  26. --log.type string app log output type. stdout or file (default "stdout")
  27. --message.cache.number int Maintain log the largest number in the memory peer event (default 256)
  28. --message.dockerlog.handle.core.number int The number of concurrent processing receive log data. more than message.handle.core.number (default 2)
  29. --message.garbage.file string save garbage message file path when save type is file (default "/var/log/envent_garbage_message.log")
  30. --message.garbage.save string garbage message way of storage (default "file")
  31. --message.handle.core.number int The number of concurrent processing receive log data. (default 2)
  32. --message.max.number int the max number log message for peer event (default 100000)
  33. --message.sub.handle.core.number int The number of concurrent processing receive log data. more than message.handle.core.number (default 3)
  34. --message.type string Receive and transmit the log message type. (default "json")
  35. --monitor-path string promethesu monitor metrics path (default "/metrics")
  36. --monitor.cache int the monitor sub server cache the receive message size (default 200)
  37. --monitor.subaddress stringSlice monitor message source address (default [tcp://127.0.0.1:9442])
  38. --monitor.subscribe string the monitor message sub server subscribe info (default "ceptop")
  39. --monitor.udp.host string receive new monitor udp server host (default "0.0.0.0")
  40. --monitor.udp.port int receive new monitor udp server port (default 6166)
  41. --nodeid-file string the unique ID for this node. Just specify, don't modify (default "/opt/rainbond/etc/node/node_host_uuid.conf")
  42. --webhook.console.token string console web api token
  43. --webhook.console.url string console web api url (default "http://console.goodrain.me")
  44. --websocket.bind.ip string the bind ip of websocket for push event message (default "0.0.0.0")
  45. --websocket.bind.port int the bind port of websocket for push event message (default 6363)
  46. --websocket.certfile string websocket ssl cert file (default "/etc/ssl/goodrain.com/goodrain.com.crt")
  47. --websocket.compression weither enable compression for web socket (default true)
  48. --websocket.keyfile string websocket ssl cert file (default "/etc/ssl/goodrain.com/goodrain.com.key")
  49. --websocket.maxrestart int the max restart count of websocket for push event message (default 5)
  50. --websocket.readbuffersize int the readbuffersize of websocket for push event message (default 4096)
  51. --websocket.ssl whether to enable websocket SSL
  52. --websocket.ssl.bind.port int the ssl bind port of websocket for push event message (default 6364)
  53. --websocket.timeout string Keep websocket service the longest time when without message (default "1m")
  54. --websocket.writebuffersize int the writebuffersize of websocket for push event message (default 4096)

环境变量

环境变量名称默认值说明