Clone this repo:
git clone https://gist.github.com/c878be36494547e5ef014e64b12cd9fe.git
cd 08be6d6e7605a43fe52d1f201c2b47d8Start the docker stack:
| [DEFAULT] | |
| # | |
| # From nova.conf | |
| # | |
| # | |
| # Availability zone for internal services. | |
| # | |
| # This option determines the availability zone for the various internal nova |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| # Configuration for sending metrics to InfluxDB | |
| [[outputs.influxdb]] | |
| ## The full HTTP or UDP URL for your InfluxDB instance. | |
| ## | |
| ## Multiple URLs can be specified for a single cluster, only ONE of the | |
| ## urls will be written to each interval. | |
| # urls = ["unix:///var/run/influxdb.sock"] | |
| # urls = ["udp://127.0.0.1:8089"] | |
| # urls = ["http://127.0.0.1:8086"] |
Tải file mẫu về
wget https://gist.githubusercontent.com/congto/735a0dce8f4adc91d5886c12303b05f3/raw/6f5130fe7a83bcb8836476f544094b675b661570/filethuchanh.conf
Hoặc tự tạo file mẫu với nội dung dưới và lưu lại với tên file là filethuchanh.conf
# Configuration for sending metrics to InfluxDB
[[outputs.influxdb]]
Đây là đoạn chứa mã nguồn hoặc output lệnh
đây là lệnh
tiếp theo là lệnh nhé
lệnh nữa này
Hết rồi
| #!/bin/bash -ex | |
| ## Date: 26.09.2018 | |
| ## Cai dat check_mk tai nhan Hoa | |
| ##### Khai bao bien o day, sua lai neu ban thay doi | |
| IP_CHECK_MK_SERVER=192.168.70.103 | |
| ##### Bat dau thuc hien script | |
| echo "######################################" | |
| echo "Tai dat cac goi" |
| #!/bin/bash | |
| ## IP PROVIDER Network for VMs | |
| PROVIDER_IP_START=192.168.20.170 | |
| PROVIDER_IP_END=192.168.20.190 | |
| PROVIDER_DNS=8.8.8.8 | |
| PROVIDER_GATEWAY=192.168.20.1 | |
| PROVIDER_SUBNET=192.168.20.0/24 | |
| ## IP PRIVATE Network for VMs |
| Name: Flash | |
| Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc= | |
| if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676 | |
| Thank you! |