This commit is contained in:
zhangzhihan
2020-01-17 15:35:48 +08:00
commit 960bdaa91f
58 changed files with 7988 additions and 0 deletions

20
deploy.yml Normal file
View File

@@ -0,0 +1,20 @@
- hosts: UI_server
roles:
- maat-redis
- hosts: cluster_server
roles:
- consul-cluster
- influxdb
- minio
- hosts: blade-mxn
roles:
- consul-external
- hosts: blade-00
roles:
- consul-internal
- telegraf
- influxdb
- grafana

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#!/bin/bash
#
killall -9 consul-replicate
cd /opt/consul-internal/bin/;./consul-replicate -prefix "device_info@consul-external_new" &>/dev/null &
cd /opt/consul-internal/bin/;./consul-replicate -prefix "device_list@consul-external_new" &>/dev/null &
cd /opt/consul-internal/bin/;./consul-replicate -prefix "tags@consul-external_new" &>/dev/null &

View File

@@ -0,0 +1,12 @@
{
"server" : true,
"datacenter" : "consul-ADC01",
"data_dir" : "/var/consul-external",
"encrypt" : "h1fHoHnJ+n+764ObqTNVjw==",
"disable_update_check" : true,
"bootstrap" : true,
"log_file" : "/var/consul-external/log/consul_external.log",
"retry_join" : ["192.168.200.5"],
"retry_interval" : "10s"
}

View File

@@ -0,0 +1,14 @@
# Systemd unit file for default tomcat
#
[Unit]
Description=Consul-cluster
After=network.target
[Service]
EnvironmentFile=/opt/consul-cluster/etc/systemd/consul.conf
ExecStartPre=/opt/consul-cluster/script/consul_bind_ip_generate.sh
ExecStart=/opt/consul-cluster/bin/consul agent -config-dir /opt/consul-cluster/etc/ -config-file /opt/consul-cluster/etc/consul/config-server.json -bind ${CONSUL_BIND_ADDRESS} -client 0.0.0.0
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,7 @@
#!/bin/bash
rm -rf /usr/lib/systemd/system/consul*service
rm -rf /usr/lib/systemd/system/consul*service
rm -rf /var/consul*
cp -f /opt/consul-cluster/etc/systemd/consul-server.service /usr/lib/systemd/system/consul-server-cluster.service
ln -sf /opt/consul-cluster/script/consul_path_setup.sh /etc/profile.d/

View File

@@ -0,0 +1,6 @@
#!/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 ens34 | grep inet | head -1 |awk '{print $2}')
#BIND_ADDRESS=192.168.200.5
systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS}

View File

@@ -0,0 +1,3 @@
PATH=/opt/consul-external/bin:${PATH}
export PATH

View File

@@ -0,0 +1,26 @@
- name: "copy consul-cluster to destination server"
copy:
src: "{{ role_path }}/files/"
dest: /opt
mode: 0755
- name: "Template consul_bind_ip_generate.sh"
template:
src: "{{ role_path }}/templates/consul_bind_ip_generate.sh.j2"
dest: /opt/consul-cluster/script
tags: template
- name: "Template config-server.json"
template:
src: "{{ role_path }}/templates/config-server.json.j2"
dest: /opt/consul-cluster/etc/consul
tags: template
- name: "Install consul-cluster"
shell: cd /opt/consul-cluster;sh install.sh
- name: "Start consul-cluster"
systemd:
name: consul-server-cluster
enabled: yes
daemon_reload: yes

View File

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

View File

@@ -0,0 +1,6 @@
#!/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
systemctl set-environment CONSUL_BIND_ADDRESS=${BIND_ADDRESS}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
# config file version
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
folderUid: ''
type: file
disableDeletion: false
editable: true
options:
path: /var/lib/grafana/dashboard-tfe.json

View File

@@ -0,0 +1,65 @@
# # config file version
apiVersion: 1
# # list of datasources that should be deleted from the database
#deleteDatasources:
deleteDatasources:
# - name: Graphite
# orgId: 1
- name: InfluxDB
orgId: 1
# # list of datasources to insert/update depending
# # on what's available in the database
#datasources:
datasources:
# # <string, required> name of the datasource. Required
# - name: Graphite
- name: InfluxDB
# # <string, required> datasource type. Required
# type: graphite
type: influxdb
# # <string, required> access mode. direct or proxy. Required
# access: proxy
access: proxy
# # <int> org id. will default to orgId 1 if not specified
# orgId: 1
# # <string> url
url: http://localhost:58086
# url: http://192.168.10.152:8086
# # <string> database password, if used
# password:
# # <string> database user, if used
# user:
user: telegraf
# # <string> database name, if used
# database:
database: telegraf
# # <bool> enable/disable basic auth
# basicAuth:
# # <string> basic auth username
# basicAuthUser:
# # <string> basic auth password
# basicAuthPassword:
# # <bool> enable/disable with credentials headers
# withCredentials:
# # <bool> mark as default datasource. Max one per org
# isDefault:
# # <map> fields that will be converted to json and stored in json_data
jsonData:
password: telegraf
# graphiteVersion: "1.1"
# tlsAuth: true
# tlsAuthWithCACert: true
# httpHeaderName1: "Authorization"
# # <string> json object of data that will be encrypted.
# secureJsonData:
# tlsCACert: "..."
# tlsClientCert: "..."
# tlsClientKey: "..."
# # <openshift\kubernetes token example>
# httpHeaderValue1: "Bearer xf5yhfkpsnmgo"
# version: 1
# # <bool> allow users to edit datasources from the UI.
# editable: false

Binary file not shown.

View File

@@ -0,0 +1,46 @@
- name: "copy grafana.rpm to destination server"
copy:
src: "{{ role_path }}/files/grafana-6.3.0-1.x86_64.rpm"
dest: /tmp
- name: "install grafana"
yum:
name:
- /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/
tags: template
- name: "copy dashboard-tfe.json"
copy:
src: "{{ role_path }}/files/dashboard-tfe.json"
dest: /var/lib/grafana/
owner: root
group: grafana
- name: "copy dashboard-tfe.yaml"
copy:
src: "{{ role_path }}/files/dashboard-tfe.yaml"
dest: /var/lib/grafana/
owner: root
group: grafana
- name: "copy dashboard-influxdb.yaml"
copy:
src: "{{ role_path }}/files/dashboard-influxdb.yaml"
dest: /etc/grafana/provisioning/datasources/
owner: root
group: grafana
- name: "Start grafana"
systemd:
name: grafana-server.service
state: started
enabled: yes

View File

@@ -0,0 +1,477 @@
##################### Grafana Configuration Example #####################
#
# Everything has defaults so you only need to uncomment things you want to
# change
# possible values : production, development
;app_mode = production
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
;instance_name = ${HOSTNAME}
#################################### Paths ####################################
[paths]
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
;data = /var/lib/grafana
# Temporary files in `data` directory older than given duration will be removed
;temp_data_lifetime = 24h
# Directory where grafana can store logs
;logs = /var/log/grafana
# Directory where grafana will automatically scan and look for plugins
;plugins = /var/lib/grafana/plugins
# folder that contains provisioning config files that grafana will apply on startup and while running.
;provisioning = conf/provisioning
#################################### Server ####################################
[server]
# Protocol (http, https, socket)
;protocol = http
# The ip address to bind to, empty will bind to all interfaces
;http_addr =
# The http port to use
http_port = {{ grafana.http_port }}
# The public facing domain name used to access grafana from a browser
;domain = localhost
# Redirect to correct domain if host header does not match domain
# Prevents DNS rebinding attacks
;enforce_domain = false
# The full public facing url you use in browser, used for redirects and emails
# If you use reverse proxy and sub path specify full url (with sub path)
;root_url = http://localhost:3000
# Log web requests
;router_logging = false
# the path relative working path
;static_root_path = public
# enable gzip
;enable_gzip = false
# https certs & key file
;cert_file =
;cert_key =
# Unix socket path
;socket =
#################################### Database ####################################
[database]
# You can configure the database connection by specifying type, host, name, user and password
# as separate properties or as on string using the url properties.
# Either "mysql", "postgres" or "sqlite3", it's your choice
;type = sqlite3
;host = 127.0.0.1:3306
;name = grafana
;user = root
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
;password =
# Use either URL or the previous fields to configure the database
# Example: mysql://user:secret@host:port/database
;url =
# For "postgres" only, either "disable", "require" or "verify-full"
;ssl_mode = disable
# For "sqlite3" only, path relative to data_path setting
;path = grafana.db
# Max idle conn setting default is 2
;max_idle_conn = 2
# Max conn setting default is 0 (mean not set)
;max_open_conn =
# Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
;conn_max_lifetime = 14400
# Set to true to log the sql calls and execution times.
log_queries =
#################################### Session ####################################
[session]
# Either "memory", "file", "redis", "mysql", "postgres", default is "file"
;provider = file
# Provider config options
# memory: not have any config yet
# file: session dir path, is relative to grafana data_path
# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
# mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
# postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
;provider_config = sessions
# Session cookie name
;cookie_name = grafana_sess
# If you use session in https only, default is false
;cookie_secure = false
# Session life time, default is 86400
;session_life_time = 86400
#################################### Data proxy ###########################
[dataproxy]
# This enables data proxy logging, default is false
;logging = false
#################################### Analytics ####################################
[analytics]
# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
# No ip addresses are being tracked, only simple counters to track
# running instances, dashboard and error counts. It is very helpful to us.
# Change this option to false to disable reporting.
;reporting_enabled = true
# Set to false to disable all checks to https://grafana.net
# for new vesions (grafana itself and plugins), check is used
# in some UI views to notify that grafana or plugin update exists
# This option does not cause any auto updates, nor send any information
# only a GET request to http://grafana.com to get latest versions
;check_for_updates = true
# Google Analytics universal tracking code, only enabled if you specify an id here
;google_analytics_ua_id =
#################################### Security ####################################
[security]
# default admin user, created on startup
;admin_user = admin
# default admin password, can be changed before first start of grafana, or in profile settings
;admin_password = admin
# used for signing
;secret_key = SW2YcwTIb9zpOOhoPsMm
# Auto-login remember days
;login_remember_days = 7
;cookie_username = grafana_user
;cookie_remember_name = grafana_remember
# disable gravatar profile images
;disable_gravatar = false
# data source proxy whitelist (ip_or_domain:port separated by spaces)
;data_source_proxy_whitelist =
# disable protection against brute force login attempts
;disable_brute_force_login_protection = false
#################################### Snapshots ###########################
[snapshots]
# snapshot sharing options
;external_enabled = true
;external_snapshot_url = https://snapshots-origin.raintank.io
;external_snapshot_name = Publish to snapshot.raintank.io
# remove expired snapshot
;snapshot_remove_expired = true
#################################### Dashboards History ##################
[dashboards]
# Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1
;versions_to_keep = 20
#################################### Users ###############################
[users]
# disable user signup / registration
;allow_sign_up = true
# Allow non admin users to create organizations
;allow_org_create = true
# Set to true to automatically assign new users to the default organization (id 1)
;auto_assign_org = true
# Default role new users will be automatically assigned (if disabled above is set to true)
;auto_assign_org_role = Viewer
# Background text for the user field on the login page
;login_hint = email or username
# Default UI theme ("dark" or "light")
;default_theme = dark
# External user management, these options affect the organization users view
;external_manage_link_url =
;external_manage_link_name =
;external_manage_info =
# Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
;viewers_can_edit = false
[auth]
# Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
;disable_login_form = false
# Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false
;disable_signout_menu = false
# URL to redirect the user to after sign out
;signout_redirect_url =
#################################### Anonymous Auth ##########################
[auth.anonymous]
# enable anonymous access
;enabled = false
# specify organization name that should be used for unauthenticated users
;org_name = Main Org.
# specify role for unauthenticated users
;org_role = Viewer
#################################### Github Auth ##########################
[auth.github]
;enabled = false
;allow_sign_up = true
;client_id = some_id
;client_secret = some_secret
;scopes = user:email,read:org
;auth_url = https://github.com/login/oauth/authorize
;token_url = https://github.com/login/oauth/access_token
;api_url = https://api.github.com/user
;team_ids =
;allowed_organizations =
#################################### Google Auth ##########################
[auth.google]
;enabled = false
;allow_sign_up = true
;client_id = some_client_id
;client_secret = some_client_secret
;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
;auth_url = https://accounts.google.com/o/oauth2/auth
;token_url = https://accounts.google.com/o/oauth2/token
;api_url = https://www.googleapis.com/oauth2/v1/userinfo
;allowed_domains =
#################################### Generic OAuth ##########################
[auth.generic_oauth]
;enabled = false
;name = OAuth
;allow_sign_up = true
;client_id = some_id
;client_secret = some_secret
;scopes = user:email,read:org
;auth_url = https://foo.bar/login/oauth/authorize
;token_url = https://foo.bar/login/oauth/access_token
;api_url = https://foo.bar/user
;team_ids =
;allowed_organizations =
;tls_skip_verify_insecure = false
;tls_client_cert =
;tls_client_key =
;tls_client_ca =
#################################### Grafana.com Auth ####################
[auth.grafana_com]
;enabled = false
;allow_sign_up = true
;client_id = some_id
;client_secret = some_secret
;scopes = user:email
;allowed_organizations =
#################################### Auth Proxy ##########################
[auth.proxy]
;enabled = false
;header_name = X-WEBAUTH-USER
;header_property = username
;auto_sign_up = true
;ldap_sync_ttl = 60
;whitelist = 192.168.1.1, 192.168.2.1
#################################### Basic Auth ##########################
[auth.basic]
;enabled = true
#################################### Auth LDAP ##########################
[auth.ldap]
;enabled = false
;config_file = /etc/grafana/ldap.toml
;allow_sign_up = true
#################################### SMTP / Emailing ##########################
[smtp]
;enabled = false
;host = localhost:25
;user =
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
;password =
;cert_file =
;key_file =
;skip_verify = false
;from_address = admin@grafana.localhost
;from_name = Grafana
# EHLO identity in SMTP dialog (defaults to instance_name)
;ehlo_identity = dashboard.example.com
[emails]
;welcome_email_on_sign_up = false
#################################### Logging ##########################
[log]
# Either "console", "file", "syslog". Default is console and file
# Use space to separate multiple modes, e.g. "console file"
;mode = console file
# Either "debug", "info", "warn", "error", "critical", default is "info"
;level = info
# optional settings to set different levels for specific loggers. Ex filters = sqlstore:debug
;filters =
# For "console" mode only
[log.console]
;level =
# log line format, valid options are text, console and json
;format = console
# For "file" mode only
[log.file]
;level =
# log line format, valid options are text, console and json
;format = text
# This enables automated log rotate(switch of following options), default is true
;log_rotate = true
# Max line number of single file, default is 1000000
;max_lines = 1000000
# Max size shift of single file, default is 28 means 1 << 28, 256MB
;max_size_shift = 28
# Segment log daily, default is true
;daily_rotate = true
# Expired days of log file(delete after max days), default is 7
;max_days = 7
[log.syslog]
;level =
# log line format, valid options are text, console and json
;format = text
# Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
;network =
;address =
# Syslog facility. user, daemon and local0 through local7 are valid.
;facility =
# Syslog tag. By default, the process' argv[0] is used.
;tag =
#################################### Alerting ############################
[alerting]
# Disable alerting engine & UI features
;enabled = true
# Makes it possible to turn off alert rule execution but alerting UI is visible
;execute_alerts = true
# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
;error_or_timeout = alerting
# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
;nodata_or_nullvalues = no_data
# Alert notifications can include images, but rendering many images at the same time can overload the server
# This limit will protect the server from render overloading and make sure notifications are sent out quickly
;concurrent_render_limit = 5
#################################### Explore #############################
[explore]
# Enable the Explore section
;enabled = false
#################################### Internal Grafana Metrics ##########################
# Metrics available at HTTP API Url /metrics
[metrics]
# Disable / Enable internal metrics
;enabled = true
# Publish interval
;interval_seconds = 10
# Send internal metrics to Graphite
[metrics.graphite]
# Enable by setting the address setting (ex localhost:2003)
;address =
;prefix = prod.grafana.%(instance_name)s.
#################################### Distributed tracing ############
[tracing.jaeger]
# Enable by setting the address sending traces to jaeger (ex localhost:6831)
;address = localhost:6831
# Tag that will always be included in when creating new spans. ex (tag1:value1,tag2:value2)
;always_included_tag = tag1:value1
# Type specifies the type of the sampler: const, probabilistic, rateLimiting, or remote
;sampler_type = const
# jaeger samplerconfig param
# for "const" sampler, 0 or 1 for always false/true respectively
# for "probabilistic" sampler, a probability between 0 and 1
# for "rateLimiting" sampler, the number of spans per second
# for "remote" sampler, param is the same as for "probabilistic"
# and indicates the initial sampling rate before the actual one
# is received from the mothership
;sampler_param = 1
#################################### Grafana.com integration ##########################
# Url used to import dashboards directly from Grafana.com
[grafana_com]
;url = https://grafana.com
#################################### External image storage ##########################
[external_image_storage]
# Used for uploading images to public servers so they can be included in slack/email messages.
# you can choose between (s3, webdav, gcs, azure_blob, local)
;provider =
[external_image_storage.s3]
;bucket =
;region =
;path =
;access_key =
;secret_key =
[external_image_storage.webdav]
;url =
;public_url =
;username =
;password =
[external_image_storage.gcs]
;key_file =
;bucket =
;path =
[external_image_storage.azure_blob]
;account_name =
;account_key =
;container_name =
[external_image_storage.local]
# does not require any configuration
[rendering]
# Options to configure external image rendering server like https://github.com/grafana/grafana-image-renderer
;server_url =
;callback_url =

Binary file not shown.

View File

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

View File

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

View File

@@ -0,0 +1,33 @@
- name: "copy influxdb.rpm to destination server"
copy:
src: "{{ role_path }}/files/"
dest: /tmp
- name: "install influxdb"
yum:
name:
- /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/
tags: template
- name: "Start influxdb"
systemd:
name: influxdb.service
state: started
enabled: yes
- name: "script set_influxdb_cluster.sh"
script: "{{role_path}}//files/set_influxdb_cluster.sh"
when: influxdb.cluster_agent is defined
- name: "script set_influxdb_blade00.sh"
script: "{{role_path}}//files/set_influxdb_blade00.sh"

View File

@@ -0,0 +1,576 @@
### Welcome to the InfluxDB configuration file.
# The values in this file override the default values used by the system if
# a config option is not specified. The commented out lines are the configuration
# field and the default value used. Uncommenting a line and changing the value
# will change the value used at runtime when the process is restarted.
# Once every 24 hours InfluxDB will report usage data to usage.influxdata.com
# The data includes a random ID, os, arch, version, the number of series and other
# usage data. No data from user databases is ever transmitted.
# Change this option to true to disable reporting.
# reporting-disabled = false
# Bind address to use for the RPC service for backup and restore.
# bind-address = "127.0.0.1:8088"
###
### [meta]
###
### Controls the parameters for the Raft consensus group that stores metadata
### about the InfluxDB cluster.
###
[meta]
# Where the metadata/raft database is stored
dir = "{{ influxdb.meta_dir }}"
# Automatically create a default retention policy when creating a database.
# retention-autocreate = true
# If log messages are printed for the meta service
# logging-enabled = true
###
### [data]
###
### Controls where the actual shard data for InfluxDB lives and how it is
### flushed from the WAL. "dir" may need to be changed to a suitable place
### for your system, but the WAL settings are an advanced configuration. The
### defaults should work for most systems.
###
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "{{ influxdb.data_dir }}"
# The directory where the TSM storage engine stores WAL files.
wal-dir = "{{ influxdb.wal_dir }}"
# The amount of time that a write will wait before fsyncing. A duration
# greater than 0 can be used to batch up multiple fsync calls. This is useful for slower
# disks or when WAL write contention is seen. A value of 0s fsyncs every write to the WAL.
# Values in the range of 0-100ms are recommended for non-SSD disks.
# wal-fsync-delay = "0s"
# The type of shard index to use for new shards. The default is an in-memory index that is
# recreated at startup. A value of "tsi1" will use a disk based index that supports higher
# cardinality datasets.
# index-version = "inmem"
# Trace logging provides more verbose output around the tsm engine. Turning
# this on can provide more useful output for debugging tsm engine issues.
# trace-logging-enabled = false
# Whether queries should be logged before execution. Very useful for troubleshooting, but will
# log any sensitive data contained within a query.
# query-log-enabled = true
# Validates incoming writes to ensure keys only have valid unicode characters.
# This setting will incur a small overhead because every key must be checked.
# validate-keys = false
# Settings for the TSM engine
# CacheMaxMemorySize is the maximum size a shard's cache can
# reach before it starts rejecting writes.
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
# cache-max-memory-size = "1g"
# CacheSnapshotMemorySize is the size at which the engine will
# snapshot the cache and write it to a TSM file, freeing up memory
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
# cache-snapshot-memory-size = "25m"
# CacheSnapshotWriteColdDuration is the length of time at
# which the engine will snapshot the cache and write it to
# a new TSM file if the shard hasn't received writes or deletes
# cache-snapshot-write-cold-duration = "10m"
# CompactFullWriteColdDuration is the duration at which the engine
# will compact all TSM files in a shard if it hasn't received a
# write or delete
# compact-full-write-cold-duration = "4h"
# The maximum number of concurrent full and level compactions that can run at one time. A
# value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. Any number greater
# than 0 limits compactions to that value. This setting does not apply
# to cache snapshotting.
# max-concurrent-compactions = 0
# CompactThroughput is the rate limit in bytes per second that we
# will allow TSM compactions to write to disk. Note that short bursts are allowed
# to happen at a possibly larger value, set by CompactThroughputBurst
# compact-throughput = "48m"
# CompactThroughputBurst is the rate limit in bytes per second that we
# will allow TSM compactions to write to disk.
# compact-throughput-burst = "48m"
# If true, then the mmap advise value MADV_WILLNEED will be provided to the kernel with respect to
# TSM files. This setting has been found to be problematic on some kernels, and defaults to off.
# It might help users who have slow disks in some cases.
# tsm-use-madv-willneed = false
# Settings for the inmem index
# The maximum series allowed per database before writes are dropped. This limit can prevent
# high cardinality issues at the database level. This limit can be disabled by setting it to
# 0.
# max-series-per-database = 1000000
# The maximum number of tag values per tag that are allowed before writes are dropped. This limit
# can prevent high cardinality tag values from being written to a measurement. This limit can be
# disabled by setting it to 0.
# max-values-per-tag = 100000
# Settings for the tsi1 index
# The threshold, in bytes, when an index write-ahead log file will compact
# into an index file. Lower sizes will cause log files to be compacted more
# quickly and result in lower heap usage at the expense of write throughput.
# Higher sizes will be compacted less frequently, store more series in-memory,
# and provide higher write throughput.
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
# max-index-log-file-size = "1m"
# The size of the internal cache used in the TSI index to store previously
# calculated series results. Cached results will be returned quickly from the cache rather
# than needing to be recalculated when a subsequent query with a matching tag key/value
# predicate is executed. Setting this value to 0 will disable the cache, which may
# lead to query performance issues.
# This value should only be increased if it is known that the set of regularly used
# tag key/value predicates across all measurements for a database is larger than 100. An
# increase in cache size may lead to an increase in heap usage.
series-id-set-cache-size = 100
###
### [coordinator]
###
### Controls the clustering service configuration.
###
[coordinator]
# The default time a write request will wait until a "timeout" error is returned to the caller.
# write-timeout = "10s"
# The maximum number of concurrent queries allowed to be executing at one time. If a query is
# executed and exceeds this limit, an error is returned to the caller. This limit can be disabled
# by setting it to 0.
# max-concurrent-queries = 0
# The maximum time a query will is allowed to execute before being killed by the system. This limit
# can help prevent run away queries. Setting the value to 0 disables the limit.
# query-timeout = "0s"
# The time threshold when a query will be logged as a slow query. This limit can be set to help
# discover slow or resource intensive queries. Setting the value to 0 disables the slow query logging.
# log-queries-after = "0s"
# The maximum number of points a SELECT can process. A value of 0 will make
# the maximum point count unlimited. This will only be checked every second so queries will not
# be aborted immediately when hitting the limit.
# max-select-point = 0
# The maximum number of series a SELECT can run. A value of 0 will make the maximum series
# count unlimited.
# max-select-series = 0
# The maximum number of group by time bucket a SELECT can create. A value of zero will max the maximum
# number of buckets unlimited.
# max-select-buckets = 0
###
### [retention]
###
### Controls the enforcement of retention policies for evicting old data.
###
[retention]
# Determines whether retention policy enforcement enabled.
# enabled = true
# The interval of time when retention policy enforcement checks run.
# check-interval = "30m"
###
### [shard-precreation]
###
### Controls the precreation of shards, so they are available before data arrives.
### Only shards that, after creation, will have both a start- and end-time in the
### future, will ever be created. Shards are never precreated that would be wholly
### or partially in the past.
[shard-precreation]
# Determines whether shard pre-creation service is enabled.
# enabled = true
# The interval of time when the check to pre-create new shards runs.
# check-interval = "10m"
# The default period ahead of the endtime of a shard group that its successor
# group is created.
# advance-period = "30m"
###
### Controls the system self-monitoring, statistics and diagnostics.
###
### The internal database for monitoring data is created automatically if
### if it does not already exist. The target retention within this database
### is called 'monitor' and is also created with a retention period of 7 days
### and a replication factor of 1, if it does not exist. In all cases the
### this retention policy is configured as the default for the database.
[monitor]
# Whether to record statistics internally.
# store-enabled = true
# The destination database for recorded statistics
# store-database = "_internal"
# The interval at which to record statistics
# store-interval = "10s"
###
### [http]
###
### Controls how the HTTP endpoints are configured. These are the primary
### mechanism for getting data into and out of InfluxDB.
###
[http]
# Determines whether HTTP endpoint is enabled.
enabled = true
# Determines whether the Flux query endpoint is enabled.
# flux-enabled = false
# Determines whether the Flux query logging is enabled.
# flux-log-enabled = false
# The bind address used by the HTTP service.
bind-address = ":58086"
# Determines whether user authentication is enabled over HTTP/HTTPS.
# auth-enabled = false
# The default realm sent back when issuing a basic auth challenge.
# realm = "InfluxDB"
# Determines whether HTTP request logging is enabled.
# log-enabled = true
# Determines whether the HTTP write request logs should be suppressed when the log is enabled.
# suppress-write-log = false
# When HTTP request logging is enabled, this option specifies the path where
# log entries should be written. If unspecified, the default is to write to stderr, which
# intermingles HTTP logs with internal InfluxDB logging.
#
# If influxd is unable to access the specified path, it will log an error and fall back to writing
# the request log to stderr.
# access-log-path = ""
# Filters which requests should be logged. Each filter is of the pattern NNN, NNX, or NXX where N is
# a number and X is a wildcard for any number. To filter all 5xx responses, use the string 5xx.
# If multiple filters are used, then only one has to match. The default is to have no filters which
# will cause every request to be printed.
# access-log-status-filters = []
# Determines whether detailed write logging is enabled.
# write-tracing = false
# Determines whether the pprof endpoint is enabled. This endpoint is used for
# troubleshooting and monitoring.
# pprof-enabled = true
# Enables a pprof endpoint that binds to localhost:6060 immediately on startup.
# This is only needed to debug startup issues.
# debug-pprof-enabled = false
# Determines whether HTTPS is enabled.
# https-enabled = false
# The SSL certificate to use when HTTPS is enabled.
# https-certificate = "/etc/ssl/influxdb.pem"
# Use a separate private key location.
# https-private-key = ""
# The JWT auth shared secret to validate requests using JSON web tokens.
# shared-secret = ""
# The default chunk size for result sets that should be chunked.
# max-row-limit = 0
# The maximum number of HTTP connections that may be open at once. New connections that
# would exceed this limit are dropped. Setting this value to 0 disables the limit.
# max-connection-limit = 0
# Enable http service over unix domain socket
# unix-socket-enabled = false
# The path of the unix domain socket.
# bind-socket = "/var/run/influxdb.sock"
# The maximum size of a client request body, in bytes. Setting this value to 0 disables the limit.
# max-body-size = 25000000
# The maximum number of writes processed concurrently.
# Setting this to 0 disables the limit.
# max-concurrent-write-limit = 0
# The maximum number of writes queued for processing.
# Setting this to 0 disables the limit.
# max-enqueued-write-limit = 0
# The maximum duration for a write to wait in the queue to be processed.
# Setting this to 0 or setting max-concurrent-write-limit to 0 disables the limit.
# enqueued-write-timeout = 0
###
### [logging]
###
### Controls how the logger emits logs to the output.
###
[logging]
# Determines which log encoder to use for logs. Available options
# are auto, logfmt, and json. auto will use a more a more user-friendly
# output format if the output terminal is a TTY, but the format is not as
# easily machine-readable. When the output is a non-TTY, auto will use
# logfmt.
# format = "auto"
# Determines which level of logs will be emitted. The available levels
# are error, warn, info, and debug. Logs that are equal to or above the
# specified level will be emitted.
# level = "info"
# Suppresses the logo output that is printed when the program is started.
# The logo is always suppressed if STDOUT is not a TTY.
# suppress-logo = false
###
### [subscriber]
###
### Controls the subscriptions, which can be used to fork a copy of all data
### received by the InfluxDB host.
###
[subscriber]
# Determines whether the subscriber service is enabled.
# enabled = true
# The default timeout for HTTP writes to subscribers.
# http-timeout = "30s"
# Allows insecure HTTPS connections to subscribers. This is useful when testing with self-
# signed certificates.
# insecure-skip-verify = false
# The path to the PEM encoded CA certs file. If the empty string, the default system certs will be used
# ca-certs = ""
# The number of writer goroutines processing the write channel.
# write-concurrency = 40
# The number of in-flight writes buffered in the write channel.
# write-buffer-size = 1000
###
### [[graphite]]
###
### Controls one or many listeners for Graphite data.
###
[[graphite]]
# Determines whether the graphite endpoint is enabled.
# enabled = false
# database = "graphite"
# retention-policy = ""
# bind-address = ":2003"
# protocol = "tcp"
# consistency-level = "one"
# These next lines control how batching works. You should have this enabled
# otherwise you could get dropped metrics or poor performance. Batching
# will buffer points in memory if you have many coming in.
# Flush if this many points get buffered
# batch-size = 5000
# number of batches that may be pending in memory
# batch-pending = 10
# Flush at least this often even if we haven't hit buffer limit
# batch-timeout = "1s"
# UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
# udp-read-buffer = 0
### This string joins multiple matching 'measurement' values providing more control over the final measurement name.
# separator = "."
### Default tags that will be added to all metrics. These can be overridden at the template level
### or by tags extracted from metric
# tags = ["region=us-east", "zone=1c"]
### Each template line requires a template pattern. It can have an optional
### filter before the template and separated by spaces. It can also have optional extra
### tags following the template. Multiple tags should be separated by commas and no spaces
### similar to the line protocol format. There can be only one default template.
# templates = [
# "*.app env.service.resource.measurement",
# # Default template
# "server.*",
# ]
###
### [collectd]
###
### Controls one or many listeners for collectd data.
###
[[collectd]]
# enabled = false
# bind-address = ":25826"
# database = "collectd"
# retention-policy = ""
#
# The collectd service supports either scanning a directory for multiple types
# db files, or specifying a single db file.
# typesdb = "/usr/local/share/collectd"
#
# security-level = "none"
# auth-file = "/etc/collectd/auth_file"
# These next lines control how batching works. You should have this enabled
# otherwise you could get dropped metrics or poor performance. Batching
# will buffer points in memory if you have many coming in.
# Flush if this many points get buffered
# batch-size = 5000
# Number of batches that may be pending in memory
# batch-pending = 10
# Flush at least this often even if we haven't hit buffer limit
# batch-timeout = "10s"
# UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
# read-buffer = 0
# Multi-value plugins can be handled two ways.
# "split" will parse and store the multi-value plugin data into separate measurements
# "join" will parse and store the multi-value plugin as a single multi-value measurement.
# "split" is the default behavior for backward compatibility with previous versions of influxdb.
# parse-multivalue-plugin = "split"
###
### [opentsdb]
###
### Controls one or many listeners for OpenTSDB data.
###
[[opentsdb]]
# enabled = false
# bind-address = ":4242"
# database = "opentsdb"
# retention-policy = ""
# consistency-level = "one"
# tls-enabled = false
# certificate= "/etc/ssl/influxdb.pem"
# Log an error for every malformed point.
# log-point-errors = true
# These next lines control how batching works. You should have this enabled
# otherwise you could get dropped metrics or poor performance. Only points
# metrics received over the telnet protocol undergo batching.
# Flush if this many points get buffered
# batch-size = 1000
# Number of batches that may be pending in memory
# batch-pending = 5
# Flush at least this often even if we haven't hit buffer limit
# batch-timeout = "1s"
###
### [[udp]]
###
### Controls the listeners for InfluxDB line protocol data via UDP.
###
[[udp]]
# enabled = false
# bind-address = ":8089"
# database = "udp"
# retention-policy = ""
# InfluxDB precision for timestamps on received points ("" or "n", "u", "ms", "s", "m", "h")
# precision = ""
# These next lines control how batching works. You should have this enabled
# otherwise you could get dropped metrics or poor performance. Batching
# will buffer points in memory if you have many coming in.
# Flush if this many points get buffered
# batch-size = 5000
# Number of batches that may be pending in memory
# batch-pending = 10
# Will flush at least this often even if we haven't hit buffer limit
# batch-timeout = "1s"
# UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max.
# read-buffer = 0
###
### [continuous_queries]
###
### Controls how continuous queries are run within InfluxDB.
###
[continuous_queries]
# Determines whether the continuous query service is enabled.
# enabled = true
# Controls whether queries are logged when executed by the CQ service.
# log-enabled = true
# Controls whether queries are logged to the self-monitoring data store.
# query-stats-enabled = false
# interval for how often continuous queries will be checked if they need to run
# run-interval = "1s"
###
### [tls]
###
### Global configuration settings for TLS in InfluxDB.
###
[tls]
# Determines the available set of cipher suites. See https://golang.org/pkg/crypto/tls/#pkg-constants
# for a list of available ciphers, which depends on the version of Go (use the query
# SHOW DIAGNOSTICS to see the version of Go used to build InfluxDB). If not specified, uses
# the default settings from Go's crypto/tls package.
# ciphers = [
# "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
# "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
# ]
# Minimum version of the tls protocol that will be negotiated. If not specified, uses the
# default settings from Go's crypto/tls package.
# min-version = "tls1.2"
# Maximum version of the tls protocol that will be negotiated. If not specified, uses the
# default settings from Go's crypto/tls package.
# max-version = "tls1.2"

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,190 @@
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

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,89 @@
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

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#!/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

@@ -0,0 +1,16 @@
[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

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,5 @@
#!/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

@@ -0,0 +1,15 @@
- 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

@@ -0,0 +1,10 @@
#!/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

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

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,8 @@
#!/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

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

View File

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

View File

@@ -0,0 +1,10 @@
#!/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

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

View File

@@ -0,0 +1,25 @@
- 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

@@ -0,0 +1,8 @@
#!/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

@@ -0,0 +1,6 @@
#!/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

Binary file not shown.

View File

@@ -0,0 +1,25 @@
- name: "copy telegraf.rpm to destination server"
copy:
src: "{{ role_path }}/files/"
dest: /tmp
- name: "install telegraf"
yum:
name:
- /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/
tags: template
- name: "Start telegraf"
systemd:
name: telegraf.service
state: started
enabled: yes

View File

@@ -0,0 +1,40 @@
[global_tags]
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
debug = false
quiet = false
logfile = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb]]
urls = ["http://{{ influxdb.cluster_ip }}:58086"]
database = "tsg_stat"
# HTTP Basic Auth
username = "admin"
password = "tsg2019"
[[outputs.influxdb]]
urls = ["http://192.168.100.1:58086"]
database = "tsg_stat"
# HTTP Basic Auth
username = "admin"
password = "tsg2019"
[[inputs.statsd]]
protocol = "udp4"
service_address = ":58125"
percentiles = [20,30,40,50,60,70,80,90,95,99]
percentile_limit = 100000000
[[inputs.udp_listener]]
ServiceAddress= ":58126"
data_format = "influx

View File

@@ -0,0 +1,11 @@
influxdb:
cluster_ip: "192.168.40.210"
minio:
data_dir: ./home/ceiec/minio_data
access_key: minio
secret_key: 1234567890
consul:
datacenter: consul-xxg
keys: XwXLAbVN1C44dLUVJ6UL5A==

View File

@@ -0,0 +1,4 @@
influxdb:
meta_dir: /var/lib/influxdb/meta
data_dir: /var/lib/influxdb/data
wal_dir: /var/lib/influxdb/wal-dir

View File

@@ -0,0 +1,8 @@
influxdb:
cluster_agent: 1
meta_dir: /var/lib/influxdb/meta
data_dir: /var/lib/influxdb/data
wal_dir: /var/lib/influxdb/wal-dir
consul:
cluster_nig_mgr: eth0

14
test_host/hosts Normal file
View File

@@ -0,0 +1,14 @@
[all:vars]
ansible_user=root
[UI_server]
192.168.41.208
[cluster_server]
192.168.41.208
[blade-mxn]
192.168.41.204
[blade-00]
192.168.41.206