manage memory mode
This commit is contained in:
parent
e01808beb5
commit
23172f64e9
|
@ -6,4 +6,5 @@
|
|||
* Can choose to install recommends packages.
|
||||
* Manage Netdata configuration (/etc).
|
||||
* Ensure Netdata service is enabled and started.
|
||||
* Allow to change IP address and port used.
|
||||
* Manage IP address and port used.
|
||||
* Manage memory mode.
|
||||
|
|
|
@ -22,6 +22,7 @@ A role to manage Netdata installation and configuration.
|
|||
* **netdata__service_manage** : If the Netdata services should be managed [default : `True`].
|
||||
* **netdata__conf_bind_ip** : IP address used by Netdata to listen [default : `127.0.0.1`].
|
||||
* **netdata__conf_bind_port** : Port used by Netdata to listen [default : `19999`].
|
||||
* **netdata__conf_memory_mode** : The memory mode of the database [default : `ram`].
|
||||
|
||||
## Example Playbook
|
||||
|
||||
|
|
|
@ -84,5 +84,15 @@ netdata__conf_bind_ip: '127.0.0.1'
|
|||
netdata__conf_bind_port: '19999'
|
||||
|
||||
# ]]]
|
||||
# .. envvar:: netdata__conf_memory_mode [[[.
|
||||
#
|
||||
# The memory mode of the database.
|
||||
#
|
||||
# Check the possible options on Netdata wiki :
|
||||
# https://github.com/firehol/netdata/wiki/Memory-Requirements#memory-modes
|
||||
#
|
||||
netdata__conf_memory_mode: 'ram'
|
||||
|
||||
# ]]]
|
||||
|
||||
# ]]]
|
||||
|
|
|
@ -16,8 +16,9 @@
|
|||
run as user = netdata
|
||||
web files owner = root
|
||||
web files group = root
|
||||
# Netdata is not designed to be exposed to potentially hostile
|
||||
# networks.See https://github.com/firehol/netdata/issues/164
|
||||
memory mode = '{{ netdata__conf_memory_mode }}'
|
||||
|
||||
[web]
|
||||
# Netdata is not designed to be exposed to potentially hostile
|
||||
# networks.See https://github.com/firehol/netdata/issues/164
|
||||
bind to = {{ netdata__conf_bind_ip }}:{{ netdata__conf_bind_port }}
|
||||
|
|
Loading…
Reference in New Issue