Class: LogStash::BootstrapCheck::PersistedQueueConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/bootstrap_check/persisted_queue_config.rb

Class Method Summary collapse

Class Method Details

.check(settings) ⇒ Object



6
7
8
9
10
11
# File 'lib/logstash/bootstrap_check/persisted_queue_config.rb', line 6

def self.check(settings)
  return unless settings.get('queue.type') == 'persisted'
  if settings.get('queue.page_capacity') > settings.get('queue.max_bytes')
    raise(LogStash::BootstrapCheckError, I18n.t("logstash.bootstrap_check.persisted_queue_config.page-capacity"))
  end
end