Merge pull request #152 from NeowayLabs/wiredtiger
Add more wiredtiger, security and profiling configs
This commit is contained in:
commit
8103d273f0
|
@ -41,6 +41,7 @@ mongodb_processmanagement_fork: "{{ 'RedHat' == ansible_os_family }}"
|
|||
# Disable or enable security. Possible values: 'disabled', 'enabled'
|
||||
mongodb_security_authorization: "disabled"
|
||||
mongodb_security_keyfile: /etc/mongodb-keyfile # Specify path to keyfile with password for inter-process authentication
|
||||
mongodb_security_javascript_enabled: false
|
||||
|
||||
## storage Options
|
||||
mongodb_storage_dbpath: /data/db # Directory for datafiles
|
||||
|
@ -57,6 +58,8 @@ mongodb_storage_smallfiles: false # Very useful for non-data node
|
|||
mongodb_storage_journal_enabled: true # Enable journaling
|
||||
mongodb_storage_prealloc: true # Enable data file preallocation
|
||||
|
||||
mongodb_wiredtiger_directory_for_indexes: false
|
||||
|
||||
## systemLog Options
|
||||
## The destination to which MongoDB sends all log output. Specify either 'file' or 'syslog'.
|
||||
## If you specify 'file', you must also specify mongodb_systemlog_path.
|
||||
|
@ -65,6 +68,10 @@ mongodb_systemlog_logappend: true # Appen
|
|||
mongodb_systemlog_logrotate: "rename" # Logrotation behavior
|
||||
mongodb_systemlog_path: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout
|
||||
|
||||
## operationProfiling Options
|
||||
mongodb_operation_profiling_slow_op_threshold_ms: 100
|
||||
mongodb_operation_profiling_mode: "off"
|
||||
|
||||
## replication Options
|
||||
mongodb_replication_replset: # Enable replication <setname>[/<optionalseedhostlist>]
|
||||
mongodb_replication_replindexprefetch: "all" # specify index prefetching behavior (if secondary) [none|_id_only|all]
|
||||
|
|
|
@ -34,7 +34,8 @@ security:
|
|||
authorization: {{ mongodb_security_authorization }}
|
||||
{% if mongodb_replication_replset and mongodb_security_authorization == 'enabled' -%}
|
||||
keyFile: {{ mongodb_security_keyfile }}
|
||||
{% endif %}
|
||||
{% endif -%}
|
||||
javascriptEnabled: {{ mongodb_security_javascript_enabled | to_nice_json }}
|
||||
|
||||
storage:
|
||||
dbPath: {{ mongodb_storage_dbpath }}
|
||||
|
@ -50,13 +51,15 @@ storage:
|
|||
enforced: {{ mongodb_storage_quota_enforced | to_nice_json }}
|
||||
maxFilesPerDB: {{ mongodb_storage_quota_maxfiles }}
|
||||
smallFiles: {{ mongodb_storage_smallfiles | to_nice_json }}
|
||||
{% endif %}
|
||||
|
||||
{% if mongodb_wiredtiger_cache_size is defined %}
|
||||
{% endif -%}
|
||||
{% if mongodb_storage_engine == 'wiredTiger' -%}
|
||||
wiredTiger:
|
||||
engineConfig:
|
||||
{% if mongodb_wiredtiger_cache_size is defined -%}
|
||||
cacheSizeGB: {{ mongodb_wiredtiger_cache_size }}
|
||||
{% endif %}
|
||||
{% endif -%}
|
||||
directoryForIndexes: {{ mongodb_wiredtiger_directory_for_indexes | to_nice_json }}
|
||||
{% endif %}
|
||||
|
||||
systemLog:
|
||||
destination: {{ mongodb_systemlog_destination }}
|
||||
|
@ -66,6 +69,10 @@ systemLog:
|
|||
path: {{ mongodb_systemlog_path }}
|
||||
{% endif %}
|
||||
|
||||
operationProfiling:
|
||||
slowOpThresholdMs: {{ mongodb_operation_profiling_slow_op_threshold_ms }}
|
||||
mode: {{ mongodb_operation_profiling_mode }}
|
||||
|
||||
{% if mongodb_set_parameters -%}
|
||||
setParameter:
|
||||
{% for key, value in mongodb_set_parameters.items() -%}
|
||||
|
|
Loading…
Reference in New Issue