From 76e0f439a0a3fd7ce2e44d9c496fe5c85dbce037 Mon Sep 17 00:00:00 2001 From: Karl Southern Date: Wed, 13 Jul 2016 17:44:47 +0100 Subject: [PATCH] Bring across settings from v2.x --- lib/logstash/outputs/jdbc.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/logstash/outputs/jdbc.rb b/lib/logstash/outputs/jdbc.rb index 7dd2a56..d352b69 100644 --- a/lib/logstash/outputs/jdbc.rb +++ b/lib/logstash/outputs/jdbc.rb @@ -12,6 +12,8 @@ require 'logstash-output-jdbc_jars' # includes correctly crafting the SQL statement, and matching the number of # parameters correctly. class LogStash::Outputs::Jdbc < LogStash::Outputs::Base + declare_threadsafe! if self.respond_to?(:declare_threadsafe!) + STRFTIME_FMT = '%Y-%m-%d %T.%L'.freeze RETRYABLE_SQLSTATE_CLASSES = [ @@ -61,7 +63,7 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base config :unsafe_statement, validate: :boolean, default: false # Number of connections in the pool to maintain - config :max_pool_size, validate: :number, default: 5 + config :max_pool_size, validate: :number, default: 24 # Connection timeout config :connection_timeout, validate: :number, default: 10000