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

Fish 7426 fix payara config cache timing comm #6291

Merged

Conversation

aubi
Copy link
Contributor

@aubi aubi commented Jun 1, 2023

Description

Renaming variables according to their content and fix code accordingly. Also do synchronization only when setting data, otherwise use the fast path.

The problem was, that the config didn't cache at all and always did search for the DurationSeconds.

Testing

Testing Performed

I use the reproducer from Jira ticket, using only the simple request (basically simple REST):

wrk -c 400 -t 400 -d 120 http://localhost:8080/jee-mongo/api/hello-world/

Comparison:

  • Glassfish: Requests/sec: 3543.07
  • Current Payara 6: Requests/sec: 1400.88
  • This version: Requests/sec: 35984.01

Feel free to correct this result as it seems really to fast.

Testing Environment

Linux, OpenJDK 11 (compile) 17 (run)

Do synchronization only when setting data, otherwise use the fast path.
@aubi
Copy link
Contributor Author

aubi commented Jun 1, 2023

Jenkins test please

@aubi aubi added the PR: DO NOT MERGE Don't merge PR until further notice label Jun 2, 2023
@aubi
Copy link
Contributor Author

aubi commented Jun 2, 2023

Do not merge until the same change in Enterprise is finished completely.

aubi added 2 commits June 5, 2023 15:18
FISH-7426 improve logger speed - field initialization, use supplier
FISH-7426 another variable naming clarification -- milliseconds

FISH-7426 fixing config provider resolver to return seconds from config cache

The value cacheDurationSeconds returned milliseconds by mistake
(misleading method name).

FISH-7426 update copyright years
@aubi aubi force-pushed the FISH-7426-fix-payara-config-cache-timing-comm branch from 476c8b5 to 5518045 Compare June 5, 2023 13:22
@aubi
Copy link
Contributor Author

aubi commented Jun 5, 2023

Jenkins test please

@aubi aubi removed the PR: DO NOT MERGE Don't merge PR until further notice label Jun 5, 2023
@aubi aubi merged commit 5b0a538 into payara:master Jun 5, 2023
@aubi aubi deleted the FISH-7426-fix-payara-config-cache-timing-comm branch June 5, 2023 14:37
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

2 participants