Skip to content

Refactor Cassandra for less open sessions#1148

Merged
wxing1292 merged 2 commits into
temporalio:masterfrom
wxing1292:refactor-cass
Dec 31, 2020
Merged

Refactor Cassandra for less open sessions#1148
wxing1292 merged 2 commits into
temporalio:masterfrom
wxing1292:refactor-cass

Conversation

@wxing1292

Copy link
Copy Markdown
Contributor

What changed?

  • Reduce number of open cassandra sessions

Why?
See above

How did you test it?
N/A

Potential risks
N/A

@wxing1292 wxing1292 requested review from a team, mastermanu and samarabbas December 31, 2020 08:21
user: {{ default .Env.CASSANDRA_USER "" }}
password: {{ default .Env.CASSANDRA_PASSWORD "" }}
port: {{ default .Env.CASSANDRA_PORT "9042" }}
maxConns: {{ default .Env.CASSANDRA_MAX_CONNS "10" }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is probably too big. I think we can leave this unset or set it to 2? What do you think

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i guess 2 is too small

{{- end }}
maxConns: {{ default .Env.SQL_VIS_MAX_CONNS "20" }}
maxIdleConns: {{ default .Env.SQL_VIS_MAX_IDLE_CONNS "20" }}
maxConns: {{ default .Env.SQL_VIS_MAX_CONNS "10" }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

curious, what was the reason for this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

there is not many calls in visibility side

@wxing1292 wxing1292 merged commit 2738ee9 into temporalio:master Dec 31, 2020
@wxing1292 wxing1292 deleted the refactor-cass branch December 31, 2020 18:22
wxing1292 added a commit that referenced this pull request Jan 5, 2021
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