Skip to content

Conversation

@jschaul
Copy link
Member

@jschaul jschaul commented Aug 16, 2022

In Gundeck's 'notifications' cassandra table, switch to TWCS compaction strategy, which should be more efficient for this workload, and possibly bring performance benefits to latencies.

It may be beneficial to run a manual compaction before rolling out this
change (but things should also work without this manual operation).

In case you have time, run the following before deploying this update:

nodetool compact gundeck notifications

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.

@jschaul jschaul requested a review from akshaymankar August 16, 2022 11:05
@jschaul jschaul temporarily deployed to cachix August 16, 2022 11:05 Inactive
@jschaul jschaul temporarily deployed to cachix August 16, 2022 11:05 Inactive
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Aug 16, 2022
@mdimjasevic
Copy link
Contributor

@jschaul , I just glanced over the list of changed files and I don't see cassandra-schema.cql listed. Have you forgotten to run make git-add-cassandra-schema?

@jschaul
Copy link
Member Author

jschaul commented Aug 16, 2022

@jschaul , I just glanced over the list of changed files and I don't see cassandra-schema.cql listed. Have you forgotten to run make git-add-cassandra-schema?

yep good point!

@jschaul jschaul temporarily deployed to cachix August 23, 2022 12:56 Inactive
@jschaul jschaul temporarily deployed to cachix August 23, 2022 12:56 Inactive
jschaul and others added 2 commits August 23, 2022 14:58
In Gundeck's 'notifications' cassandra table, switch to [TWCS](https://cassandra.apache.org/doc/latest/cassandra/operating/compaction/twcs.html) compaction strategy, which should be more efficient for this workload, and possibly bring performance benefits to latencies.

It may be beneficial to run a manual compaction before rolling out this
change (but things should also work without this manual operation).

In case you have time, run the following before deploying this update:

```
nodetool compact gundeck notifications
```
@jschaul jschaul force-pushed the gundeck-twcs-notifications branch from fb32325 to 87671e0 Compare August 23, 2022 12:59
@jschaul jschaul temporarily deployed to cachix August 23, 2022 12:59 Inactive
@jschaul jschaul temporarily deployed to cachix August 23, 2022 12:59 Inactive
@jschaul jschaul temporarily deployed to cachix August 23, 2022 13:35 Inactive
@jschaul jschaul temporarily deployed to cachix August 23, 2022 13:35 Inactive
@jschaul
Copy link
Member Author

jschaul commented Aug 23, 2022

@jschaul , I just glanced over the list of changed files and I don't see cassandra-schema.cql listed. Have you forgotten to run make git-add-cassandra-schema?

fixed now (took me a while to recompile wire-server to success to do this).

@jschaul
Copy link
Member Author

jschaul commented Aug 23, 2022

As discussed with @akshaymankar we'll merge this PR after the next release has gone out.

@jschaul jschaul merged commit 931e570 into develop Sep 1, 2022
@jschaul jschaul deleted the gundeck-twcs-notifications branch September 1, 2022 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants