axon-server installation (CentOS / RedHat)¶
Step 1 - Prerequisites¶
Elasticsearch stores all of the collected data by axon-server. Let's install Java 8 and Elasticsearch first.
Elasticsearch supports either OpenJDK or Oracle JDK. Since Oracle has changed the licensing model as of January 2019 we suggest using OpenJDK.
Run the following commands for OpenJDK:
sudo yum install java-1.8.0-openjdk-devel
Run the following commands for Oracle JDK:
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
sudo rpm -i jdk-8u131-linux-x64.rpm
Increase the bulk queue size of Elasticsearch by running the following command:
sudo echo 'thread_pool.bulk.queue_size: 2000' >> /etc/elasticsearch/elasticsearch.yml
Elasticsearch uses a mmapfs directory by default to store its indices. The default operating system limits on mmap counts is likely to be too low, which may result in out of memory exceptions.
You can increase the limits by running the following command:
sudo sysctl -w vm.max_map_count=262144
Also, Elasticsearch needs
max file descriptors system settings at least to 65536.
echo 'elasticsearch - nofile 65536' | sudo tee --append /etc/security/limits.conf > /dev/null
sudo systemctl start elasticsearch.service
After a short period of time, you can verify that your Elasticsearch node is running by sending an HTTP request to port 9200 on localhost:
curl -X GET "localhost:9200/"
Step 2 - axon-server installer¶
curl -1sLf 'https://repo.axonops.com/public/yum/cfg/setup/bash.rpm.sh' | sudo bash sudo yum install axon-server
Step 3 - axon-server configuration update¶
Make sure elastic_host and elastic_port are corresponding to your Elasticsearch instance.
host: 0.0.0.0 # axon-server listening address (used by axon-dash and axon-agent) port: 8080 # axon-server HTTP API listening port (used by axon-dash) elastic_host: localhost # Elasticsearch endpoint elastic_port: 9200 # Elasticsearch port axon-dash: # This must point to axon-dash address host: 127.0.0.1 port: 3000 https: false alerting: # How long to wait before sending a notification again if it has already # been sent successfully for an alert. (Usually ~3h or more). notification_interval: 3h retention: events: 8w # logs and events retention. Must be expressed in weeks (w) metrics: high_resolution: 14d # High frequency metrics. Must be expressed in days (d) med_resolution: 12w # Must be expressed in weeks (w) low_resolution: 12M # Must be expressed in months (M) super_low_resolution: 2y # Must be expressed in years (y) backups: # Those are use as defaults but can be overridden from the UI local: 10d remote: 30d
Step 4 - Start the server¶
sudo systemctl daemon-reload sudo systemctl start axon-server sudo systemctl status axon-server
This will start the
axon-server process as the
axonops user, which was created during the package installation. The default listening address is
- Systemd service:
- Copyright :
- Licenses :
Step 5 - Installing axon-dash¶
Now axon-server is installed, you can start installing the GUI for it: axon-dash