Merge pull request #22934 from gmarek/master
Auto commit by PR queue bot
This commit is contained in:
		@@ -698,11 +698,11 @@ function create-nodes-template() {
 | 
				
			|||||||
# exports:
 | 
					# exports:
 | 
				
			||||||
# - NUM_MIGS
 | 
					# - NUM_MIGS
 | 
				
			||||||
function set_num_migs() {
 | 
					function set_num_migs() {
 | 
				
			||||||
  local defaulted_max_instances_per_mig=${MAX_INSTANCES_PER_MIG:-500}
 | 
					  local defaulted_max_instances_per_mig=${MAX_INSTANCES_PER_MIG:-1000}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if [[ ${defaulted_max_instances_per_mig} -le "0" ]]; then
 | 
					  if [[ ${defaulted_max_instances_per_mig} -le "0" ]]; then
 | 
				
			||||||
    echo "MAX_INSTANCES_PER_MIG cannot be negative. Assuming default 500"
 | 
					    echo "MAX_INSTANCES_PER_MIG cannot be negative. Assuming default 1000"
 | 
				
			||||||
    defaulted_max_instances_per_mig=500
 | 
					    defaulted_max_instances_per_mig=1000
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
  export NUM_MIGS=$(((${NUM_NODES} + ${defaulted_max_instances_per_mig} - 1) / ${defaulted_max_instances_per_mig}))
 | 
					  export NUM_MIGS=$(((${NUM_NODES} + ${defaulted_max_instances_per_mig} - 1) / ${defaulted_max_instances_per_mig}))
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,6 @@
 | 
				
			|||||||
            export NUM_NODES="1000"
 | 
					            export NUM_NODES="1000"
 | 
				
			||||||
            # Reduce logs verbosity
 | 
					            # Reduce logs verbosity
 | 
				
			||||||
            export TEST_CLUSTER_LOG_LEVEL="--v=1"
 | 
					            export TEST_CLUSTER_LOG_LEVEL="--v=1"
 | 
				
			||||||
            export MAX_INSTANCES_PER_MIG="1000"
 | 
					 | 
				
			||||||
            # Increase resync period to simulate production
 | 
					            # Increase resync period to simulate production
 | 
				
			||||||
            export TEST_CLUSTER_RESYNC_PERIOD="--min-resync-period=12h"
 | 
					            export TEST_CLUSTER_RESYNC_PERIOD="--min-resync-period=12h"
 | 
				
			||||||
            {post-env}
 | 
					            {post-env}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user