diff options
author | Eriks Sneiders <eriks.sneiders@zabbix.com> | 2021-05-25 09:07:50 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2021-09-24 10:19:04 +0300 |
commit | cae1800171ac79ac579f07a3467baa779a6922ef (patch) | |
tree | 7a63a780c4f626848994d025d8b32e97d5389714 /src/go/plugins/mongodb | |
parent | 688264a6c251bcf8b4bc32f33e5b9f77ea83a63a (diff) |
...G...... [ZBXNEXT-6428] moved plugins' parameters to separate config files
Based on work in cc4663edaeb23a7ddb91bbbb215f30c04f7806aa
(cherry picked from commit 7f3437bc92263b0df1789d1e9f1c0aac9127734e)
Diffstat (limited to 'src/go/plugins/mongodb')
-rw-r--r-- | src/go/plugins/mongodb/README.md | 2 | ||||
-rw-r--r-- | src/go/plugins/mongodb/config.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/go/plugins/mongodb/README.md b/src/go/plugins/mongodb/README.md index eba29e9f4cd..5888d178b16 100644 --- a/src/go/plugins/mongodb/README.md +++ b/src/go/plugins/mongodb/README.md @@ -38,7 +38,7 @@ db.createUser({ ## Configuration The Zabbix Agent's configuration file is used to configure plugins. -**Plugins.Mongo.KeepAlive** — Sets a time for waiting before unused connections will be closed. +**Plugins.Mongo.KeepAlive** — The amount of time a connection can remain idle before it is closed. *Default value:* 300 sec. *Limits:* 60-900 diff --git a/src/go/plugins/mongodb/config.go b/src/go/plugins/mongodb/config.go index 55a3b9c901c..a6df8028d78 100644 --- a/src/go/plugins/mongodb/config.go +++ b/src/go/plugins/mongodb/config.go @@ -29,7 +29,7 @@ type PluginOptions struct { // first connecting and on follow up operations in the session. Timeout int `conf:"optional,range=1:30"` - // KeepAlive is a time to wait before unused connections will be closed. + // KeepAlive is amount of time a connection can remain idle before it is closed. KeepAlive int `conf:"optional,range=60:900,default=300"` // Sessions stores pre-defined named sets of connections settings. |