Skip to content

OWLS-80960 - Allow replicas count to drop below min dynamic cluster size #1627

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

Merged
merged 5 commits into from
May 6, 2020

Conversation

alai8
Copy link
Member

@alai8 alai8 commented May 6, 2020

Introduce a new Cluster CRD element allowReplicasBelowMinDynClusterSize that if set to true (the default), the operator would allow replicas count to be set below the minimum dynamic cluster size configured in the WebLogic domain home configuration.

This allows users to shut down all servers in a dynamic cluster by setting the cluster replicas count to 0. This also prevents managed servers in a dynamic cluster from starting by operator even if the replicas is 0. This was the behavior before OWLS-79994.

To prevent WLDF from scaling below the min dynamic cluster size, set allowReplicasBelowMinDynClusterSize to false.

Copy link
Contributor

@rosemarymarano rosemarymarano left a comment

Choose a reason for hiding this comment

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

minor edits

@@ -77,6 +77,7 @@ An element representing a cluster in the domain configuration.

| Name | Type | Description |
| --- | --- | --- |
| `allowReplicasBelowMinDynClusterSize` | Boolean | If true (the default), the number of replicas is allowed to drop below the minimum dynamic cluster size configured in the WebLogic domain home configuration. Otherwise, the operator will ensure that the number of replicas is not below the minimum dynamic cluster. This setting applies to dynamic clusters only. |
Copy link
Contributor

@rosemarymarano rosemarymarano May 6, 2020

Choose a reason for hiding this comment

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

If true (the default), the number -> If true (the default), then the number
that the number of replicas is not below the minimum dynamic cluster -> that the number of replicas is not less than the minimum dynamic cluster setting. OR ->
that the number of replicas is not less than the configured minimum dynamic cluster size.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the comment. I have updated the description to:

If true (the default), then the number of replicas is allowed to drop below the minimum dynamic cluster size configured in the WebLogic domain home configuration. Otherwise, the operator will ensure that the number of replicas is not less than the minimum dynamic cluster setting. This setting applies to dynamic clusters only.

@@ -1029,6 +1029,10 @@
"description": "The name of this cluster. Required",
"type": "string"
},
"allowReplicasBelowMinDynClusterSize": {
Copy link
Contributor

@rosemarymarano rosemarymarano May 6, 2020

Choose a reason for hiding this comment

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

If true (the default), the number -> If true (the default), then the number
that the number of replicas is not below the minimum dynamic cluster -> that the number of replicas is not less than the minimum dynamic cluster setting. OR ->
that the number of replicas is not less than the configured minimum dynamic cluster size.

Copy link
Member Author

Choose a reason for hiding this comment

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

ditto

@@ -109,6 +109,10 @@
"description": "The name of this cluster. Required",
"type": "string"
},
"allowReplicasBelowMinDynClusterSize": {

Choose a reason for hiding this comment

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

Should this also be a global setting? On the one hand, it's extra work and I'm not sure if the extra work is worth it at this time. On the other hand, there's precedent where 'replicas' itself is both global and per-cluster.

One way to handle this would be check-in 'as-is' and file a JIRA to add a global setting...

Copy link
Member Author

@alai8 alai8 May 6, 2020

Choose a reason for hiding this comment

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

Filed OWLS-81769

@tbarnes-us
Copy link

This LGTM overall. Made one minor comment above that I don't think is a show stopper. Delegating sign-off to Ryan.

@rjeberhard rjeberhard merged commit 34a8259 into develop May 6, 2020
@rjeberhard rjeberhard deleted the owls-80960 branch May 13, 2020 13:39
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.

4 participants