Installation

Download and install package based on your operation system.

How to start/restart/stop

Chaos use systemctl to manage service. To Start service use start command:

sudo systemctl start chaos

To start a service at boot, use the enable command:

sudo systemctl enable chaos

To stop a currently running service, you can use the stop command:

sudo systemctl stop chaos

To restart a running service, you can use the restart command:

sudo systemctl restart chaos

To check the status of a service on your system, you can use the status command:

sudo systemctl status chaos

Configuration

By default configuration file is placed in /etc/default/chaos.

# Pusher application id
PUSHER_APP_ID=testapp

# Pusher application key
PUSHER_APP_KEY=websocketkey

# Pusher application secret
PUSHER_APP_SECRET=

# enable or disable pusher client event
PUSHER_APP_CLIENT_EVENTS=1

# pusher connection timeout in seconds
PUSHER_APP_ACTIVITY_TIMEOUT=

# listener address ipv4, ipv6 or unix:/path/to/socket for unix socket
# default: localhost
REDIS_SERVER=127.0.0.1

# redis listener port
# default: 6379
REDIS_PORT=6379

# redis listener backlog
# default: 500
REDIS_CONNECTIONS=500

# websocket address ipv4, ipv6 or unix:/path/to/socket for unix socket
# default: localhost
WS_SERVER=127.0.0.1

# websocket listener port
# default: 6001
WS_PORT=6001

# websocket listener backlog
# default: 500
WS_CONNECTIONS=500

# websocket max frame limit in bytes
# default: 16384
WS_CLIENT_MAX_SIZE=16384

# http request max size in bytes
# default: 4096
HTTP_CLIENT_MAX_SIZE=4096

# patch to PID file
PID=/run/chaos/chaos.pid

# log level threshold
# options: DEBUG, INFO, NOTICE, WARNING, ERROR, CRIT, ALERT, EMERG
# default: DEBUG
LOG_LEVEL=INFO

# log file path
LOG_FILE=/var/log/chaos/chaos.log