
43
3. Remove the identified Pet Store Application Node from the Public
LTM Pool.
scaleIn() function
This operation releases an indicated excess resource in the public cloud.
1. Get list of all pool members in the pool_GemPet_http in Public
Cloud LTM
2. Get 'session enabled status' for all the pool members
3. // disable the node from the LTM pool that is marked in the
nodeTrigger list:
for(all the nodes in the pool memberlist) {
// Skip the one with SQL Fabric Infrastructure node
if(poolMemberIP == Pet Store IP (part of the SQL Infrastructure vApp) {
// ignore
continue;
}
if(hitList.contains(pool-member IP) {
// set the pool member session state to disabled
memSessionState.setSession_state(sessionState._STATE_DISABLED));
// Find the vApp reference to the one matching this IP address
undeploy the vApp
}
}
readyToScaleIn() function
In this section of the orchestration process, application performance
attributes are monitored and assigned to a queue of resources to deprovision
if they are not needed. readyToScaleIn() will then call the scaleIn() function
to do the work of deactivation.
1. Get Total Number of connections for every node ('Petstore
Application'):
readyToScaleIn = FALSE
for(every Node in the connectionMap) {
If (total number of connections < 'Total Node Connections' Threshold) {
if(node is already part of trigger list) {
start timer if not started already. and add to trigger list.
} else if ( (current time - start time for the node) > 'time' threshold) {
// Mark this node for removal since it has
// less conections than threshold for time duration more than the 'time threshold'
hitList.add(node);
Comentários a estes Manuais