Skip to content

Commit eea61ec

Browse files
committed
add comment to never reduce dynamicClusterSize in mbean
1 parent 4f0292f commit eea61ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

operator/src/main/java/oracle/kubernetes/operator/wlsconfig/WlsClusterConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ public void validateReplicas(Integer replicas, String machineNamePrefix,
223223
// updates, ie, suggestedConfigUpdates is not null, and if replicas value is larger than
224224
// the current dynamic cluster size, or if some of the machines to be used for the dynamic
225225
// servers are not yet configured.
226+
//
227+
// Note: Never reduce the value of dynamicClusterSize even during scale down
226228
if (suggestedConfigUpdates != null) {
227229
if (hasDynamicServers()) {
228230
if (replicas > getDynamicClusterSize() || !verifyMachinesConfigured(machineNamePrefix, replicas)) {

0 commit comments

Comments
 (0)