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

#2544 - Patroni Recovery mode resolution #2730

Merged
merged 1 commit into from
Jan 25, 2024
Merged

Conversation

guru-aot
Copy link
Collaborator

@guru-aot guru-aot commented Jan 24, 2024

Analysis and troubleshooting on patroni going to recovery mode on load test

  • Patroni convert the user from superuser to database user

Tested the simple workflow in our application after changing the database user to non super user with the minimal permissions and it seems to work well.

Also the release notes will be updated to grant the non super user permissions to do application operations.

GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA sims TO "app_database_user";

Copy link

sonarcloud bot commented Jan 24, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 19.52% ( 2659 / 13621 )
Methods: 10.32% ( 179 / 1734 )
Lines: 22.16% ( 2288 / 10327 )
Branches: 12.31% ( 192 / 1560 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 51.87% ( 360 / 694 )
Methods: 46.15% ( 42 / 91 )
Lines: 56.52% ( 299 / 529 )
Branches: 25.68% ( 19 / 74 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 78.26% ( 673 / 860 )
Methods: 71.84% ( 74 / 103 )
Lines: 79.97% ( 587 / 734 )
Branches: 52.17% ( 12 / 23 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 55.43% ( 4139 / 7467 )
Methods: 52.2% ( 511 / 979 )
Lines: 60.08% ( 3348 / 5573 )
Branches: 30.6% ( 280 / 915 )

Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

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

Great job. Looks good 👍

@dheepak-aot dheepak-aot added the Devops Devops label Jan 25, 2024
Copy link
Collaborator

@sh16011993 sh16011993 left a comment

Choose a reason for hiding this comment

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

LGTM @guru-aot 👍 . Nice work.

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

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

Great work and research, looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Devops Devops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants