更新consul-external、consul-internal、mariadb

This commit is contained in:
zhangzhihan
2020-01-24 17:55:06 +08:00
parent 960bdaa91f
commit e78252a137
40 changed files with 41 additions and 2552 deletions

View File

@@ -1,12 +1,8 @@
- hosts: UI_server
roles:
- maat-redis
- hosts: cluster_server
roles:
- consul-cluster
- influxdb
- minio
- MariaDB
- hosts: blade-mxn
roles:

View File

@@ -7,13 +7,13 @@
- name: "Template consul_bind_ip_generate.sh"
template:
src: "{{ role_path }}/templates/consul_bind_ip_generate.sh.j2"
dest: /opt/consul-cluster/script
dest: /opt/consul-cluster/script/consul_bind_ip_generate.sh
tags: template
- name: "Template config-server.json"
template:
src: "{{ role_path }}/templates/config-server.json.j2"
dest: /opt/consul-cluster/etc/consul
dest: /opt/consul-cluster/etc/consul/config-server.json
tags: template
- name: "Install consul-cluster"
@@ -22,5 +22,6 @@
- name: "Start consul-cluster"
systemd:
name: consul-server-cluster
state: restarted
enabled: yes
daemon_reload: yes

View File

@@ -2,11 +2,11 @@
"server" : true,
"datacenter" : "{{ consul.datacenter }}",
"data_dir" : "/var/consul-cluster",
"encrypt" : "{{ consul.keys}}",
"encrypt" : "{{ consul.dckey }}",
"disable_update_check" : true,
"bootstrap" : true,
"log_file" : "/var/consul-cluster/log/consul_cluster.log",
"retry_join" : ["{{ inventory_hostname }}"],
"retry_join" : ["{{ consul.cluster_ip }}"],
"retry_interval" : "10s"
}

View File

@@ -1,6 +1,4 @@
#!/bin/bash
#BIND_ADDRESS=$(/usr/sbin/ip route | /usr/bin/grep default | head -n 1 | /usr/bin/awk '{print $5}' | /usr/bin/xargs ifconfig | /usr/bin/grep "inet" | /usr/bin/grep -v "inet6" | /usr/bin/awk '{print $2}')
BIND_ADDRESS=$(ifconfig {{ consul.cluster_nig_mgr }} | grep inet | head -1 |awk '{print $2}')
#BIND_ADDRESS=192.168.200.5
BIND_ADDRESS=$(ifconfig {{ consul.cluster_ethname }} | grep inet | head -1 |awk '{print $2}')
systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS}

View File

@@ -9,13 +9,10 @@
- /tmp/grafana-6.3.0-1.x86_64.rpm
state: present
- name: "bak original grafana.ini"
shell: cd /etc/grafana;mv grafana.ini grafana.ini_original
- name: "Templates grafana.ini"
template:
src: "{{role_path}}/templates/grafana.ini.j2"
dest: /etc/grafana/
dest: /etc/grafana/grafana.ini
tags: template
- name: "copy dashboard-tfe.json"
@@ -32,9 +29,9 @@
owner: root
group: grafana
- name: "copy dashboard-influxdb.yaml"
- name: "copy datasources-influxdb.yaml"
copy:
src: "{{ role_path }}/files/dashboard-influxdb.yaml"
src: "{{ role_path }}/files/datasources-influxdb.yaml"
dest: /etc/grafana/provisioning/datasources/
owner: root
group: grafana
@@ -42,5 +39,5 @@
- name: "Start grafana"
systemd:
name: grafana-server.service
state: started
state: restarted
enabled: yes

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#
influx -port 58086 -execute 'CREATE DATABASE tsg_stat'
influx -port 58086 -execute 'CREATE RETENTION POLICY "1_day" ON "tsg_stat" DURATION 1d REPLICATION 1 DEFAULT'

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#
influx -port 58086 -execute 'CREATE DATABASE tsg_stat'
influx -port 58086 -execute 'CREATE RETENTION POLICY "1_year" ON "tsg_stat" DURATION 365d REPLICATION 1 DEFAULT'

View File

@@ -9,25 +9,23 @@
- /tmp/influxdb-1.7.7.x86_64.rpm
state: present
- name: "bak original influxdb.conf"
shell: cd /etc/influxdb;mv influxdb.conf influxdb.conf_original
- name: "Templates influxdb.conf"
template:
src: "{{role_path}}/templates/influxdb.conf.j2"
dest: /etc/influxdb/
dest: /etc/influxdb/influxdb.conf
tags: template
- name: "Start influxdb"
systemd:
name: influxdb.service
state: started
state: restarted
enabled: yes
- name: "script set_influxdb_cluster.sh"
script: "{{role_path}}//files/set_influxdb_cluster.sh"
when: influxdb.cluster_agent is defined
when: influxdb.cluster_agent == "yes"
- name: "script set_influxdb_blade00.sh"
script: "{{role_path}}//files/set_influxdb_blade00.sh"
when: influxdb.mcn0_agent == "yes"

File diff suppressed because it is too large Load Diff

View File

@@ -1,190 +0,0 @@
19103:C 11 Nov 15:03:31.891 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19103:C 11 Nov 15:03:31.892 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19103, just started
19103:C 11 Nov 15:03:31.892 # Configuration loaded
19104:M 11 Nov 15:03:31.895 * Increased maximum number of open files to 10032 (it was originally set to 1024).
19104:M 11 Nov 15:03:31.895 * Running mode=standalone, port=7001.
19104:M 11 Nov 15:03:31.896 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
19104:M 11 Nov 15:03:31.896 # Server initialized
19104:M 11 Nov 15:03:31.896 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
19104:M 11 Nov 15:03:31.896 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
19104:M 11 Nov 15:03:31.896 * Ready to accept connections
19104:signal-handler (1573455825) Received SIGTERM scheduling shutdown...
19104:M 11 Nov 15:03:45.826 # User requested shutdown...
19104:M 11 Nov 15:03:45.826 * Saving the final RDB snapshot before exiting.
19104:M 11 Nov 15:03:45.827 * DB saved on disk
19104:M 11 Nov 15:03:45.827 * Removing the pid file.
19104:M 11 Nov 15:03:45.827 # Redis is now ready to exit, bye bye...
19656:C 11 Nov 15:31:05.680 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19656:C 11 Nov 15:31:05.696 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19656, just started
19656:C 11 Nov 15:31:05.696 # Configuration loaded
19656:C 11 Nov 15:31:05.696 * supervised by systemd, will signal readiness
19656:M 11 Nov 15:31:05.712 * Increased maximum number of open files to 10032 (it was originally set to 1024).
19656:M 11 Nov 15:31:05.720 * Running mode=standalone, port=7001.
19656:M 11 Nov 15:31:05.720 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
19656:M 11 Nov 15:31:05.720 # Server initialized
19656:M 11 Nov 15:31:05.720 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
19656:M 11 Nov 15:31:05.726 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
19656:M 11 Nov 15:31:05.727 * DB loaded from disk: 0.001 seconds
19656:M 11 Nov 15:31:05.727 * Ready to accept connections
19656:signal-handler (1573457482) Received SIGTERM scheduling shutdown...
19656:M 11 Nov 15:31:22.736 # User requested shutdown...
19656:M 11 Nov 15:31:22.736 * Saving the final RDB snapshot before exiting.
19656:M 11 Nov 15:31:22.788 * DB saved on disk
19656:M 11 Nov 15:31:22.788 * Removing the pid file.
19656:M 11 Nov 15:31:22.788 # Redis is now ready to exit, bye bye...
19704:C 11 Nov 15:31:36.988 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19704:C 11 Nov 15:31:36.988 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19704, just started
19704:C 11 Nov 15:31:36.988 # Configuration loaded
19704:C 11 Nov 15:31:36.988 * supervised by systemd, will signal readiness
19704:M 11 Nov 15:31:36.990 * Increased maximum number of open files to 10032 (it was originally set to 1024).
19704:M 11 Nov 15:31:36.992 * Running mode=standalone, port=7001.
19704:M 11 Nov 15:31:36.992 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
19704:M 11 Nov 15:31:36.993 # Server initialized
19704:M 11 Nov 15:31:36.993 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
19704:M 11 Nov 15:31:36.993 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
19704:M 11 Nov 15:31:36.993 * DB loaded from disk: 0.000 seconds
19704:M 11 Nov 15:31:36.993 * Ready to accept connections
19704:signal-handler (1573457523) Received SIGTERM scheduling shutdown...
19704:M 11 Nov 15:32:03.227 # User requested shutdown...
19704:M 11 Nov 15:32:03.227 * Saving the final RDB snapshot before exiting.
19704:M 11 Nov 15:32:03.228 * DB saved on disk
19704:M 11 Nov 15:32:03.228 * Removing the pid file.
19704:M 11 Nov 15:32:03.228 # Redis is now ready to exit, bye bye...
19794:C 11 Nov 15:34:29.494 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19794:C 11 Nov 15:34:29.586 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19794, just started
19794:C 11 Nov 15:34:29.586 # Configuration loaded
19794:C 11 Nov 15:34:29.586 # systemd supervision requested, but NOTIFY_SOCKET not found
19795:M 11 Nov 15:34:29.593 * Increased maximum number of open files to 10032 (it was originally set to 1024).
19795:M 11 Nov 15:34:29.594 * Running mode=standalone, port=7001.
19795:M 11 Nov 15:34:29.594 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
19795:M 11 Nov 15:34:29.594 # Server initialized
19795:M 11 Nov 15:34:29.595 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
19795:M 11 Nov 15:34:29.596 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
19795:M 11 Nov 15:34:29.596 * DB loaded from disk: 0.000 seconds
19795:M 11 Nov 15:34:29.596 * Ready to accept connections
19795:signal-handler (1573457669) Received SIGTERM scheduling shutdown...
19795:M 11 Nov 15:34:29.697 # User requested shutdown...
19795:M 11 Nov 15:34:29.697 * Saving the final RDB snapshot before exiting.
19795:M 11 Nov 15:34:29.709 * DB saved on disk
19795:M 11 Nov 15:34:29.709 * Removing the pid file.
19795:M 11 Nov 15:34:29.709 # Redis is now ready to exit, bye bye...
19811:C 11 Nov 15:34:39.921 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19811:C 11 Nov 15:34:39.922 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19811, just started
19811:C 11 Nov 15:34:39.922 # Configuration loaded
19811:C 11 Nov 15:34:39.922 # systemd supervision requested, but NOTIFY_SOCKET not found
19812:M 11 Nov 15:34:39.932 * Increased maximum number of open files to 10032 (it was originally set to 1024).
19812:M 11 Nov 15:34:39.934 * Running mode=standalone, port=7001.
19812:M 11 Nov 15:34:39.934 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
19812:M 11 Nov 15:34:39.934 # Server initialized
19812:M 11 Nov 15:34:39.935 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
19812:M 11 Nov 15:34:39.949 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
19812:M 11 Nov 15:34:39.949 * DB loaded from disk: 0.000 seconds
19812:M 11 Nov 15:34:39.949 * Ready to accept connections
19812:signal-handler (1573457679) Received SIGTERM scheduling shutdown...
19812:M 11 Nov 15:34:40.050 # User requested shutdown...
19812:M 11 Nov 15:34:40.050 * Saving the final RDB snapshot before exiting.
19812:M 11 Nov 15:34:40.052 * DB saved on disk
19812:M 11 Nov 15:34:40.052 * Removing the pid file.
19812:M 11 Nov 15:34:40.052 # Redis is now ready to exit, bye bye...
19958:C 11 Nov 15:40:23.048 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19958:C 11 Nov 15:40:23.049 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19958, just started
19958:C 11 Nov 15:40:23.049 # Configuration loaded
19958:C 11 Nov 15:40:23.049 # systemd supervision requested, but NOTIFY_SOCKET not found
19959:M 11 Nov 15:40:23.057 * Increased maximum number of open files to 10032 (it was originally set to 1024).
19959:M 11 Nov 15:40:23.073 * Running mode=standalone, port=7001.
19959:M 11 Nov 15:40:23.073 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
19959:M 11 Nov 15:40:23.073 # Server initialized
19959:M 11 Nov 15:40:23.073 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
19959:M 11 Nov 15:40:23.073 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
19959:M 11 Nov 15:40:23.076 * DB loaded from disk: 0.003 seconds
19959:M 11 Nov 15:40:23.076 * Ready to accept connections
19959:signal-handler (1573458429) Received SIGTERM scheduling shutdown...
19959:M 11 Nov 15:47:09.197 # User requested shutdown...
19959:M 11 Nov 15:47:09.197 * Saving the final RDB snapshot before exiting.
19959:M 11 Nov 15:47:09.206 * DB saved on disk
19959:M 11 Nov 15:47:09.206 * Removing the pid file.
19959:M 11 Nov 15:47:09.207 # Redis is now ready to exit, bye bye...
20055:C 11 Nov 15:53:15.443 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20055:C 11 Nov 15:53:15.443 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20055, just started
20055:C 11 Nov 15:53:15.443 # Configuration loaded
20056:M 11 Nov 15:53:15.453 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20056:M 11 Nov 15:53:15.456 * Running mode=standalone, port=7001.
20056:M 11 Nov 15:53:15.456 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20056:M 11 Nov 15:53:15.456 # Server initialized
20056:M 11 Nov 15:53:15.456 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20056:M 11 Nov 15:53:15.456 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20056:M 11 Nov 15:53:15.457 * DB loaded from disk: 0.000 seconds
20056:M 11 Nov 15:53:15.457 * Ready to accept connections
20056:signal-handler (1573458795) Received SIGTERM scheduling shutdown...
20056:M 11 Nov 15:53:15.666 # User requested shutdown...
20056:M 11 Nov 15:53:15.667 * Saving the final RDB snapshot before exiting.
20056:M 11 Nov 15:53:15.694 * DB saved on disk
20056:M 11 Nov 15:53:15.694 * Removing the pid file.
20056:M 11 Nov 15:53:15.694 # Redis is now ready to exit, bye bye...
20110:C 11 Nov 15:54:15.524 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20110:C 11 Nov 15:54:15.524 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20110, just started
20110:C 11 Nov 15:54:15.524 # Configuration loaded
20111:M 11 Nov 15:54:15.528 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20111:M 11 Nov 15:54:15.530 * Running mode=standalone, port=7001.
20111:M 11 Nov 15:54:15.530 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20111:M 11 Nov 15:54:15.530 # Server initialized
20111:M 11 Nov 15:54:15.530 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20111:M 11 Nov 15:54:15.531 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20111:M 11 Nov 15:54:15.531 * DB loaded from disk: 0.000 seconds
20111:M 11 Nov 15:54:15.531 * Ready to accept connections
20111:signal-handler (1573458865) Received SIGTERM scheduling shutdown...
20111:M 11 Nov 15:54:25.375 # User requested shutdown...
20111:M 11 Nov 15:54:25.375 * Saving the final RDB snapshot before exiting.
20111:M 11 Nov 15:54:25.376 * DB saved on disk
20111:M 11 Nov 15:54:25.376 * Removing the pid file.
20111:M 11 Nov 15:54:25.376 # Redis is now ready to exit, bye bye...
20634:C 11 Nov 16:30:43.550 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20634:C 11 Nov 16:30:43.550 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20634, just started
20634:C 11 Nov 16:30:43.550 # Configuration loaded
20635:M 11 Nov 16:30:43.750 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20635:M 11 Nov 16:30:43.871 * Running mode=standalone, port=7001.
20635:M 11 Nov 16:30:43.871 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20635:M 11 Nov 16:30:43.871 # Server initialized
20635:M 11 Nov 16:30:43.872 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20635:M 11 Nov 16:30:43.883 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20635:M 11 Nov 16:30:43.883 * DB loaded from disk: 0.000 seconds
20635:M 11 Nov 16:30:43.883 * Ready to accept connections
20635:signal-handler (1573461052) Received SIGTERM scheduling shutdown...
20635:M 11 Nov 16:30:52.125 # User requested shutdown...
20635:M 11 Nov 16:30:52.125 * Saving the final RDB snapshot before exiting.
20635:M 11 Nov 16:30:52.125 * DB saved on disk
20635:M 11 Nov 16:30:52.126 * Removing the pid file.
20635:M 11 Nov 16:30:52.126 # Redis is now ready to exit, bye bye...
20740:C 11 Nov 16:34:03.805 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20740:C 11 Nov 16:34:03.805 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20740, just started
20740:C 11 Nov 16:34:03.805 # Configuration loaded
20741:M 11 Nov 16:34:03.812 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20741:M 11 Nov 16:34:03.815 * Running mode=standalone, port=7001.
20741:M 11 Nov 16:34:03.815 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20741:M 11 Nov 16:34:03.815 # Server initialized
20741:M 11 Nov 16:34:03.815 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20741:M 11 Nov 16:34:03.815 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20741:M 11 Nov 16:34:03.816 * DB loaded from disk: 0.000 seconds
20741:M 11 Nov 16:34:03.816 * Ready to accept connections
20741:signal-handler (1573461243) Received SIGTERM scheduling shutdown...
20741:M 11 Nov 16:34:03.916 # User requested shutdown...
20741:M 11 Nov 16:34:03.916 * Saving the final RDB snapshot before exiting.
20741:M 11 Nov 16:34:03.917 * DB saved on disk
20741:M 11 Nov 16:34:03.917 * Removing the pid file.
20741:M 11 Nov 16:34:03.917 # Redis is now ready to exit, bye bye...
20760:C 11 Nov 16:35:03.699 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20760:C 11 Nov 16:35:03.699 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20760, just started
20760:C 11 Nov 16:35:03.699 # Configuration loaded
20761:M 11 Nov 16:35:03.703 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20761:M 11 Nov 16:35:03.712 * Running mode=standalone, port=7001.
20761:M 11 Nov 16:35:03.713 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20761:M 11 Nov 16:35:03.713 # Server initialized
20761:M 11 Nov 16:35:03.713 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20761:M 11 Nov 16:35:03.713 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20761:M 11 Nov 16:35:03.713 * DB loaded from disk: 0.000 seconds
20761:M 11 Nov 16:35:03.713 * Ready to accept connections
20761:M 11 Nov 16:50:04.054 * 1 changes in 900 seconds. Saving...
20761:M 11 Nov 16:50:04.114 * Background saving started by pid 20802
20802:C 11 Nov 16:50:04.184 * DB saved on disk
20802:C 11 Nov 16:50:04.223 * RDB: 6 MB of memory used by copy-on-write
20761:M 11 Nov 16:50:04.281 * Background saving terminated with success

File diff suppressed because it is too large Load Diff

View File

@@ -1,89 +0,0 @@
19283:C 11 Nov 15:05:38.386 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19283:C 11 Nov 15:05:38.386 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19283, just started
19283:C 11 Nov 15:05:38.386 # Configuration loaded
19284:M 11 Nov 15:05:38.389 * Increased maximum number of open files to 10032 (it was originally set to 1024).
19284:M 11 Nov 15:05:38.390 * Running mode=standalone, port=7002.
19284:M 11 Nov 15:05:38.390 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
19284:M 11 Nov 15:05:38.390 # Server initialized
19284:M 11 Nov 15:05:38.390 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
19284:M 11 Nov 15:05:38.390 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
19284:M 11 Nov 15:05:38.391 * Ready to accept connections
19284:signal-handler (1573455948) Received SIGTERM scheduling shutdown...
19284:M 11 Nov 15:05:48.514 # User requested shutdown...
19284:M 11 Nov 15:05:48.514 * Saving the final RDB snapshot before exiting.
19284:M 11 Nov 15:05:48.515 * DB saved on disk
19284:M 11 Nov 15:05:48.515 * Removing the pid file.
19284:M 11 Nov 15:05:48.515 # Redis is now ready to exit, bye bye...
19796:C 11 Nov 15:34:29.625 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19796:C 11 Nov 15:34:29.633 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19796, just started
19796:C 11 Nov 15:34:29.633 # Configuration loaded
19796:C 11 Nov 15:34:29.633 # systemd supervision requested, but NOTIFY_SOCKET not found
19813:C 11 Nov 15:34:39.954 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19813:C 11 Nov 15:34:39.954 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=19813, just started
19813:C 11 Nov 15:34:39.954 # Configuration loaded
19813:C 11 Nov 15:34:39.954 # systemd supervision requested, but NOTIFY_SOCKET not found
20057:C 11 Nov 15:53:15.466 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20057:C 11 Nov 15:53:15.466 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20057, just started
20057:C 11 Nov 15:53:15.466 # Configuration loaded
20061:M 11 Nov 15:53:15.514 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20061:signal-handler (1573458795) Received SIGTERM scheduling shutdown...
20061:M 11 Nov 15:53:15.697 * Running mode=standalone, port=7002.
20061:M 11 Nov 15:53:15.697 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20061:M 11 Nov 15:53:15.697 # Server initialized
20061:M 11 Nov 15:53:15.697 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20061:M 11 Nov 15:53:15.697 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20061:M 11 Nov 15:53:15.697 * DB loaded from disk: 0.000 seconds
20061:M 11 Nov 15:53:15.697 * Ready to accept connections
20061:M 11 Nov 15:53:15.697 # User requested shutdown...
20061:M 11 Nov 15:53:15.697 * Saving the final RDB snapshot before exiting.
20061:M 11 Nov 15:53:15.710 * DB saved on disk
20061:M 11 Nov 15:53:15.710 * Removing the pid file.
20061:M 11 Nov 15:53:15.710 # Redis is now ready to exit, bye bye...
20112:C 11 Nov 15:54:15.531 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20112:C 11 Nov 15:54:15.531 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20112, just started
20112:C 11 Nov 15:54:15.531 # Configuration loaded
20116:M 11 Nov 15:54:15.533 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20116:M 11 Nov 15:54:15.534 * Running mode=standalone, port=7002.
20116:M 11 Nov 15:54:15.534 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20116:M 11 Nov 15:54:15.534 # Server initialized
20116:M 11 Nov 15:54:15.534 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20116:M 11 Nov 15:54:15.534 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20116:M 11 Nov 15:54:15.534 * DB loaded from disk: 0.000 seconds
20116:M 11 Nov 15:54:15.535 * Ready to accept connections
20116:signal-handler (1573458865) Received SIGTERM scheduling shutdown...
20116:M 11 Nov 15:54:25.374 # User requested shutdown...
20116:M 11 Nov 15:54:25.374 * Saving the final RDB snapshot before exiting.
20116:M 11 Nov 15:54:25.375 * DB saved on disk
20116:M 11 Nov 15:54:25.375 * Removing the pid file.
20116:M 11 Nov 15:54:25.376 # Redis is now ready to exit, bye bye...
20639:C 11 Nov 16:30:44.058 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20639:C 11 Nov 16:30:44.058 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20639, just started
20639:C 11 Nov 16:30:44.058 # Configuration loaded
20640:M 11 Nov 16:30:44.061 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20640:M 11 Nov 16:30:44.062 * Running mode=standalone, port=7002.
20640:M 11 Nov 16:30:44.062 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20640:M 11 Nov 16:30:44.062 # Server initialized
20640:M 11 Nov 16:30:44.062 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20640:M 11 Nov 16:30:44.063 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20640:M 11 Nov 16:30:44.063 * DB loaded from disk: 0.000 seconds
20640:M 11 Nov 16:30:44.063 * Ready to accept connections
20640:signal-handler (1573461052) Received SIGTERM scheduling shutdown...
20640:M 11 Nov 16:30:52.081 # User requested shutdown...
20640:M 11 Nov 16:30:52.081 * Saving the final RDB snapshot before exiting.
20640:M 11 Nov 16:30:52.082 * DB saved on disk
20640:M 11 Nov 16:30:52.082 * Removing the pid file.
20640:M 11 Nov 16:30:52.082 # Redis is now ready to exit, bye bye...
20742:C 11 Nov 16:34:03.854 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20742:C 11 Nov 16:34:03.854 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20742, just started
20742:C 11 Nov 16:34:03.854 # Configuration loaded
20762:C 11 Nov 16:35:03.715 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
20762:C 11 Nov 16:35:03.716 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=20762, just started
20762:C 11 Nov 16:35:03.716 # Configuration loaded
20766:M 11 Nov 16:35:03.725 * Increased maximum number of open files to 10032 (it was originally set to 1024).
20766:M 11 Nov 16:35:03.726 * Running mode=standalone, port=7002.
20766:M 11 Nov 16:35:03.727 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
20766:M 11 Nov 16:35:03.727 # Server initialized
20766:M 11 Nov 16:35:03.727 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
20766:M 11 Nov 16:35:03.727 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
20766:M 11 Nov 16:35:03.727 * DB loaded from disk: 0.000 seconds
20766:M 11 Nov 16:35:03.727 * Ready to accept connections

View File

@@ -1,6 +0,0 @@
#!/bin/bash
#
cp -rf redis-server /usr/local/bin/
cp -rf redis-cli /usr/local/bin
cp -rf maat-redis.service /usr/lib/systemd/system/
cp -rf start-maat-redis /usr/local/bin

View File

@@ -1,16 +0,0 @@
[Unit]
Description=Redis persistent key-value database
After=network.target
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/start-maat-redis
ExecStop=killall redis-server
Type=forking
RuntimeDirectory=redis
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target

View File

@@ -1,5 +0,0 @@
#!/bin/bash
#
/usr/local/bin/redis-server /home/ceiec/maat-redis/7001/7001.conf
/usr/local/bin/redis-server /home/ceiec/maat-redis/7002/7002.conf

View File

@@ -1,15 +0,0 @@
- name: "copy maat-redis to destination server"
copy:
src: "{{ role_path }}/files/"
dest: /home/ceiec
mode: 0755
- name: "install maat-redis"
shell: cd /home/ceiec/maat-redis;sh install.sh
- name: "start maat-redis"
systemd:
name: maat-redis.service
state: started
daemon_reload: yes
enabled: yes

View File

@@ -1,10 +0,0 @@
#!/bin/sh
bucket_name=openbucket
#用户名密码改为实际的值
./mc config host add myminio http://127.0.0.1:9000 minio 1234567890
./mc mb myminio/$bucket_name
./mc policy public myminio/$bucket_name

View File

@@ -1 +0,0 @@
echo 3 > /proc/sys/vm/drop_caches &

Binary file not shown.

View File

@@ -1,8 +0,0 @@
#!/bin/bash
while [ 1 ];
do
./minio server --address :9000 ./DATA1 >> ./minio.log 2>&1
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
sleep 30
done

View File

@@ -1,3 +0,0 @@
#!/bin/bash
killall minio_dmn.sh minio
./minio_dmn.sh &>/dev/null &

View File

@@ -1,2 +0,0 @@
#!/bin/bash
killall minio_dmn.sh minio

View File

@@ -1,10 +0,0 @@
#!/bin/bash
local_ip=$(ifconfig eth2 | grep 'inet' |grep -v inet6 | awk '{print $2}')
data="{\"Name\":\"MinioCache\",\"ID\":\"$local_ip:9000\",\"Address\":\"$local_ip\",\"Port\":9000,\"EnableTagOverride\":true,\"Tags\":[\"group=TangoCache\",\"capacity=20\"],\"Check\":{\"id\":\"minio\",\"name\":\"Minio TCP on port 9000\",\"tcp\":\"$local_ip:9000\",\"interval\":\"10s\",\"timeout\":\"1s\"}}"
curl -s http://localhost:8500/v1/agent/service/register -X PUT -i -H "Content-Type:application/json" -d "$data"
#curl http://localhost:8500/v1/agent/service/deregister/$local_ip:9000

View File

@@ -1,6 +0,0 @@
#!/bin/bash
while [ 1 ];
do
./mc rm -r --force --older-than=1 myminio/yspdata > /dev/null
done

View File

@@ -1,25 +0,0 @@
- name: "copy MinioStanAlone"
copy:
src: "{{ role_path }}/files/"
dest: /home/ceiec
mode: 0755
- name: "Templates minio_dmn.sh"
template:
src: "{{ role_path }}/templates/minio_dmn.sh.j2"
dest: /home/ceiec/MinioStanAlone
tags: template
- name: "Templates set_minio_profile"
template:
src: "{{ role_path }}/templates/set_minio_profile.sh.j2"
dest: /home/ceiec/MinioStanAlone
owner: root
group: root
- name: "set minio profile"
shell: cd /home/ceiec/MinioStanAlone;sh set_minio_profile.sh
- name: "Start minio"
shell: cd /home/ceiec/MinioStanAlone;sh minio_start.sh

View File

@@ -1,8 +0,0 @@
#!/bin/bash
while [ 1 ];
do
./minio server --address :9090 {{ minio.data_dir }} >> ./minio.log 2>&1
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
sleep 30
done

View File

@@ -1,6 +0,0 @@
#!/bin/bash
#
echo 'export MINIO_ACCESS_KEY="{{ minio.access_key }}"' >>/root/.bash_profile
echo 'export MINIO_SECRET_KEY="{{ minio.secret_key }}"' >>/root/.bash_profile
source /root/.bash_profile

View File

@@ -9,17 +9,14 @@
- /tmp/telegraf-1.11.4-1.x86_64.rpm
state: present
- name: "bak original telegraf.conf"
shell: cd /etc/telegraf;mv telegraf.conf telegraf.conf_original
- name: "Templates telegraf.conf"
template:
src: "{{role_path}}/templates/telegraf.conf.j2"
dest: /etc/telegraf/
dest: /etc/telegraf/telegraf.conf
tags: template
- name: "Start telegraf"
systemd:
name: telegraf.service
state: started
state: restarted
enabled: yes

View File

@@ -1,11 +1,13 @@
influxdb:
cluster_ip: "192.168.40.210"
minio:
data_dir: ./home/ceiec/minio_data
access_key: minio
secret_key: 1234567890
cluster_ip: "172.16.124.133"
consul:
datacenter: consul-xxg
keys: XwXLAbVN1C44dLUVJ6UL5A==
dckey: "XwXLAbVN1C44dLUVJ6UL5A=="
cluster_ip: "172.16.124.133"
cluster_ethname: ens33
external_ethname: ens33
internal_ethname: ens33
mariadb:
password: 111111

View File

@@ -1,4 +1,10 @@
influxdb:
cluster_agent: "no"
cluster_ip: "172.16.124.133"
mcn0_agent: "yes"
meta_dir: /var/lib/influxdb/meta
data_dir: /var/lib/influxdb/data
wal_dir: /var/lib/influxdb/wal-dir
grafana:
http_port: 53000

View File

@@ -1,8 +1,7 @@
influxdb:
cluster_agent: 1
cluster_agent: "yes"
mcn0_agent: "no"
meta_dir: /var/lib/influxdb/meta
data_dir: /var/lib/influxdb/data
wal_dir: /var/lib/influxdb/wal-dir
consul:
cluster_nig_mgr: eth0

View File

@@ -1,14 +1,13 @@
[all:vars]
ansible_user=root
[UI_server]
192.168.41.208
[cluster_server]
192.168.41.208
172.16.124.133
[blade-mxn]
192.168.41.204
172.16.124.132
172.16.124.131
[blade-00]
192.168.41.206
172.16.124.130 server_ip=172.16.124.132
172.16.124.129 server_ip=172.16.124.131