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

Feature/postgres 13 theory #4396

Merged
merged 6 commits into from
Aug 11, 2021
Merged

Feature/postgres 13 theory #4396

merged 6 commits into from
Aug 11, 2021

Conversation

denis-yuen
Copy link
Member

@denis-yuen denis-yuen commented Aug 9, 2021

  • update to postgres 13 and turn off jit

slightly slower performance than with 12.7, but is in the right neighbourhood
companion for #4388

https://app.slack.com/archives/CEGMXHBHT/p1628280502020200 for more details

@denis-yuen denis-yuen self-assigned this Aug 9, 2021
@codecov
Copy link

codecov bot commented Aug 9, 2021

Codecov Report

Merging #4396 (097ef13) into develop (4012b88) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #4396   +/-   ##
==========================================
  Coverage      69.23%   69.23%           
  Complexity      3691     3691           
==========================================
  Files            267      267           
  Lines          15197    15197           
  Branches        1651     1651           
==========================================
  Hits           10522    10522           
  Misses          3907     3907           
  Partials         768      768           
Flag Coverage Δ
integrationtests 57.61% <ø> (ø)
languageparsingtests 0.59% <ø> (ø)
toolintegrationtests 30.22% <ø> (ø)
workflowintegrationtests 42.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4012b88...097ef13. Read the comment docs.

@denis-yuen denis-yuen marked this pull request as ready for review August 9, 2021 18:52
@@ -42,7 +42,7 @@ services:
# networks:
# - elastic
postgres_db:
image: postgres:11.12
image: postgres:13.3
Copy link
Contributor

Choose a reason for hiding this comment

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

Add command: postgres -c max_connections=200 -c jit=off here as well? Although maybe the max_connections portion isn't necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

for JIT see other pg 12 PR.
for 200 connections, the comment is originally

Some sort of connection leak (by the internal dropwizard validation query), could not figure out how to fix, just increased db max_connections

in relation to I think tests, so I think it doesn't apply here @garyluu can you confirm?

Copy link
Contributor

Choose a reason for hiding this comment

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

for JIT see other pg 12 PR.

Do you mean other PR turns off JIT, or there's a comment there I should look at?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I meant this comment #4390 (comment) which was made when I assumed AWS RDS had JIT on. In that case, I didn't decide whether I wanted JIT on or off for Docker compose to match the tests or match prod.

Since you discovered that prod has JIT off, think I'll turn it off here too

@@ -178,7 +179,7 @@ public void testProprietaryAPI() {
* @param path Path of endpoint
*/
private void testXTotalCount(Client jerseyClient, String path) {
Response response = jerseyClient.target(path).request().get();
Response response = jerseyClient.target(path).request().property(ClientProperties.READ_TIMEOUT, 0).get();
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, why did this need to change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Without it, one of the tests can timeout.
It is possible the slower DB was responsible for slowing things to the extent it timed out, but I figure it couldn't hurt to keep it.

@@ -42,7 +42,7 @@ services:
# networks:
# - elastic
postgres_db:
image: postgres:11.12
image: postgres:13.3
Copy link
Contributor

Choose a reason for hiding this comment

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

for JIT see other pg 12 PR.

Do you mean other PR turns off JIT, or there's a comment there I should look at?

@sonarcloud
Copy link

sonarcloud bot commented Aug 11, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@denis-yuen denis-yuen merged commit 93a88e0 into develop Aug 11, 2021
@denis-yuen denis-yuen deleted the feature/postgres_13_theory branch August 11, 2021 20:28
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.

None yet

5 participants