Commit 1f12fc53 authored by Robert Dietrich's avatar Robert Dietrich

added docker stuff for InfluxDB and MariaDB

parent da7cc330
......@@ -107,10 +107,11 @@ Modify MariaDB’s configuration file (*/etc/my.cnf*) and add the following line
[mysqld]
max-connections=500 # default 151
**Note**: It is recommend to allow at least 500 connections.
**Note**: The actual value depends on the number of monitored nodes and the typical job types (parallel vs. throughput jobs). A value of 500 should be sufficient for 2000 nodes.
You can also use the mysql command line client to change the maximum allowed connections:
You can also use the mysql command line client to change the maximum allowed connections (after starting the MariaDB service):
mysql
MariaDB [(none)]> SET GLOBAL max_connections=500;
Start the MariaDB server:
......
# Docker Images and Configuration for InfluxDB and MariaDB
An InfluxDB container can be executed via docker run command (see [influxdb/docker_run.sh](influxdb/docker_run.sh)) or via *docker-compose* / *docker stack deploy* using [influxdb/docker-compose.yml](influxdb/docker-compose.yml).
TODO: InfluxDB configuration file [influxdb/influx_conf.env](influxdb/influx_conf.env) is missing!
A MariaDB container can be executed via *docker-compose* / *docker stack deploy* using [mariadb/docker-compose.yml](mariadb/docker-compose.yml).
TODO: MariaDB configuration file [mariadb/mariadb_conf.env](mariadb/mariadb_conf.env) is missing!
Instead of using the *env_file* it is also possible to map the MariaDB configuration file ([mariadb/conf/pika-my.cnf](mariadb/conf/pika-my.cnf)) to */etc/my.cnf* in the image.
\ No newline at end of file
version: '3'
services:
influxdb:
image: influxdb:1.7.9
container_name: pika-influxdb
env_file:
- ./influx_conf.env
volumes:
# Mount for influxdb data/metadata directory
#- /data/influxdb:/var/lib/influxdb
- /tmp/influxdb:/var/lib/influxdb
# Mount for influxdb configuration
#- ./influxdb/config/:/etc/influxdb/
ports:
# The API for InfluxDB is served on port 8086
- "8086:8086"
- "8088:8088"
docker run -p 8086:8086 -p 8088:8088 -v /tmp/influxdb:/var/lib/influxdb --env-file influx_conf.env influxdb:1.7.9
[mysqld]
max-connections=500
skip-networking=0
skip-bind-address
version: '3.1'
services:
mariadb:
image: mariadb/server:10.4
container_name: pika-mariadb
restart: always
env_file:
- ./mariadb_conf.env
volumes:
- /tmp/mariadb:/var/lib/mysql
- ./conf:/etc/mysql/conf.d
ports:
- 3306:3306
adminer:
image: adminer
restart: always
ports:
- 8080:8080
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment