Skip to content

docs: connection pool options for Oracle state store#5221

Open
nelson-parente wants to merge 3 commits into
dapr:v1.19from
nelson-parente:docs/oracle-state-connection-pool
Open

docs: connection pool options for Oracle state store#5221
nelson-parente wants to merge 3 commits into
dapr:v1.19from
nelson-parente:docs/oracle-state-connection-pool

Conversation

@nelson-parente

Copy link
Copy Markdown
Contributor

Summary

Documents the four database/sql connection-pool metadata options now available in the Oracle state store component (introduced in dapr/components-contrib#4411):

  • maxOpenConns — max open connections (maps to SetMaxOpenConns; default: unlimited)
  • maxIdleConns — max idle connections (maps to SetMaxIdleConns; default: Go default of 2)
  • connMaxLifetime — max connection lifetime as a Go duration string (maps to SetConnMaxLifetime; default: reused forever)
  • connMaxIdleTime — max idle time before connection is closed as a Go duration string (maps to SetConnMaxIdleTime; default: no limit)

All four fields are optional. No existing content was modified.

Targets Dapr 1.19.

Code: dapr/components-contrib#4411
Relates to: dapr/components-contrib#4276

Signed-off-by: nelson.parente <nelson_parente@live.com.pt>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for new database/sql connection-pool metadata options supported by the Oracle Database state store component (targeting Dapr 1.19), aligning the Oracle state store docs with the recently introduced component capabilities.

Changes:

  • Documented four optional connection pool settings: maxOpenConns, maxIdleConns, connMaxLifetime, and connMaxIdleTime.
  • Linked duration-based settings to Go’s time.ParseDuration documentation for formatting guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +50 to +53
| `maxOpenConns` | N | Maximum number of open connections to the database. Defaults to unlimited (Go default: `0`) | `"10"` |
| `maxIdleConns` | N | Maximum number of idle connections in the connection pool. Defaults to Go default (`2`) | `"5"` |
| `connMaxLifetime` | N | Maximum lifetime of a connection as a [Go duration](https://pkg.go.dev/time#ParseDuration). Defaults to connections being reused forever | `"30s"`, `"5m"` |
| `connMaxIdleTime` | N | Maximum idle time for a connection before it is closed, as a [Go duration](https://pkg.go.dev/time#ParseDuration). Defaults to no limit | `"5m"` |
…(Copilot review)

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +50 to +53
| `maxOpenConns` | N | Maximum number of open connections to the database. Defaults to unlimited (Go default: `0`) | `"10"`
| `maxIdleConns` | N | Maximum number of idle connections in the connection pool. Defaults to Go default (`2`) | `"5"`
| `connMaxLifetime` | N | Maximum lifetime of a connection as a [Go duration](https://pkg.go.dev/time#ParseDuration). Defaults to connections being reused forever | `"30s"`, `"5m"`
| `connMaxIdleTime` | N | Maximum idle time for a connection before it is closed, as a [Go duration](https://pkg.go.dev/time#ParseDuration). Defaults to no limit | `"5m"`
… review)

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
@nelson-parente nelson-parente marked this pull request as ready for review June 19, 2026 09:36
@nelson-parente nelson-parente requested review from a team as code owners June 19, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants