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-7158: adding warmup option to start domain #6451

Conversation

breakponchito
Copy link
Contributor

@breakponchito breakponchito commented Oct 14, 2023

Adding warmup option to stop server after bootstrapping

Description

This is a feature to replicate same functionality from payara micro to payara server with the start-domain command

Important Info

Blockers

Testing

New tests

Testing Performed

Manual testing, the server stops after bootstrapping
message from logs:

`
payara6/bin$ ./asadmin start-domain --warmup

Waiting for domain1 to start .......
Successfully started the domain : domain1
domain Location: /home/alfv83/projects/Payara/appserver/distributions/payara/target/stage/payara6/glassfish/domains/domain1
Log File: /home/alfv83/projects/Payara/appserver/distributions/payara/target/stage/payara6/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
The server stops because warmup option was set to true.
You can reuse configuration because Server finishes after bootstrapping.
Command start-domain executed successfully.
`

Testing Environment

Windows 11 with azul JDK 11, maven 3.8.3 and Ubuntu 20.04 with azul JDK 11, maven 3.8.6

Documentation

Notes for Reviewers

@breakponchito breakponchito added the PR: DO NOT MERGE Don't merge PR until further notice label Oct 14, 2023
@breakponchito
Copy link
Contributor Author

Do not merge, still testing and documenting

@aubi
Copy link
Contributor

aubi commented Oct 16, 2023

Verified on Linux, OpenJDK 11

I tried also postbootcommandfile:

./asadmin start-domain --warmup --postbootcommandfile ${POSTBOOTDIR}/postboot-clusterjsp.asadmin

With content:

deploy /home/aubi/work/payara/server/defects/clusterjsp.war

The app was successfully deployed and after normal startup, it was running.

After the cosmetic fixes this PR can be approved.

@breakponchito
Copy link
Contributor Author

Jenkins test please

@breakponchito
Copy link
Contributor Author

Jenkins test please

@breakponchito
Copy link
Contributor Author

Verified on Linux, OpenJDK 11

I tried also postbootcommandfile:

./asadmin start-domain --warmup --postbootcommandfile ${POSTBOOTDIR}/postboot-clusterjsp.asadmin

With content:

deploy /home/aubi/work/payara/server/defects/clusterjsp.war

The app was successfully deployed and after normal startup, it was running.

After the cosmetic fixes this PR can be approved.

I already tested same on windows 11 with azul JDK 11, and is working fine

@breakponchito
Copy link
Contributor Author

Jenkins test please

@breakponchito breakponchito removed the PR: DO NOT MERGE Don't merge PR until further notice label Oct 17, 2023
Copy link
Contributor

@aubi aubi left a comment

Choose a reason for hiding this comment

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

LGTM

aubi

This comment was marked as duplicate.

@breakponchito
Copy link
Contributor Author

Jenkins test please

@breakponchito breakponchito merged commit 5e596cc into payara:master Oct 17, 2023
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