Ensure "elastic_thread_pool_size" is cast to int
The variable elastic_thread_pool_size is expected to be an integer however setting it as a fact and using it later results in it being a string which creates unexpected results when the string has math applied to it. Change-Id: I339792c80378c86f785462a318a2565e946c7515 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
82182589f0
commit
dc68c35a4c
@ -43,7 +43,7 @@ output.logstash:
|
||||
# less than or equal to 0 disables the splitting of batches. When splitting
|
||||
# is disabled, the queue decides on the number of events to be contained in a
|
||||
# batch.
|
||||
bulk_max_size: {{ elastic_thread_pool_size * 256 }}
|
||||
bulk_max_size: {{ (elastic_thread_pool_size | int) * 256 }}
|
||||
|
||||
{% if named_index is defined %}
|
||||
# Optional index name. The default index name is set to {{ named_index }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user