Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] clarified the usage of and settings #169

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Unreleased
- [DOC] clarified the usage of `jdbc_validation_timeout` and `connection_retry_attempts_wait_time` settings. [#169](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/169)

## 5.4.10
- Adds retry mechanism when checkout Derby from SVN repository [#158](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/158)
- [DOC] add known limitations and settings for connection issue [#167](https://github.com/logstash-plugins/logstash-integration-jdbc/pull/167)
Expand Down
1 change: 1 addition & 0 deletions docs/filter-jdbc_streaming.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ Validate connection before use.

Connection pool configuration.
How often to validate a connection (in seconds).
Validation is done only when a connection is borrowed from the pool and not done actively while lays in the pool.

[id="plugins-{type}s-{plugin}-parameters"]
===== `parameters`
Expand Down
5 changes: 3 additions & 2 deletions docs/input-jdbc.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ Maximum number of times to try connecting to database
* Value type is <<number,number>>
* Default value is `0.5`

Number of seconds to sleep between connection attempts
Number of seconds to sleep between connection pool creation attempts. Used only during the registration of the plugin.

[id="plugins-{type}s-{plugin}-jdbc_connection_string"]
===== `jdbc_connection_string`
Expand Down Expand Up @@ -508,7 +508,8 @@ Validate connection before use.
* Default value is `3600`

Connection pool configuration.
How often to validate a connection (in seconds)
How often to validate a connection (in seconds).
Validation is done only when a connection is borrowed from the pool and not done actively while lays in the pool.

[id="plugins-{type}s-{plugin}-last_run_metadata_path"]
===== `last_run_metadata_path`
Expand Down
5 changes: 3 additions & 2 deletions lib/logstash/plugin_mixins/jdbc/jdbc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def setup_jdbc_config
config :jdbc_validate_connection, :validate => :boolean, :default => false

# Connection pool configuration.
# How often to validate a connection (in seconds)
# How often to validate a connection (in seconds).
# Validation is done only when a connection is borrowed from the pool and not done actively while lays in the pool.
config :jdbc_validation_timeout, :validate => :number, :default => 3600

# Connection pool configuration.
Expand Down Expand Up @@ -101,7 +102,7 @@ def setup_jdbc_config

# Maximum number of times to try connecting to database
config :connection_retry_attempts, :validate => :number, :default => 1
# Number of seconds to sleep between connection attempts
# Number of seconds to sleep between connection pool creation attempts. Used only during the registration of the plugin.
config :connection_retry_attempts_wait_time, :validate => :number, :default => 0.5

# Maximum number of times to try running statement
Expand Down
3 changes: 2 additions & 1 deletion lib/logstash/plugin_mixins/jdbc_streaming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def setup_jdbc_config
config :jdbc_validate_connection, :validate => :boolean, :default => false

# Connection pool configuration.
# How often to validate a connection (in seconds)
# How often to validate a connection (in seconds).
# Validation is done only when a connection is borrowed from the pool and not done actively while lays in the pool.
config :jdbc_validation_timeout, :validate => :number, :default => 3600
end

Expand Down