in src/scaler/scaler-core/index.js [537:556]
async function scaleMemorystoreClusterLocal(cluster) {
try {
const state = State.buildFor(cluster);
await processScalingRequest(cluster, state);
await state.close();
await Counters.incRequestsSuccessCounter();
} catch (err) {
logger.error({
message: `Failed to process scaling request: ${err}`,
projectId: cluster.projectId,
regionId: cluster.regionId,
clusterId: cluster.clusterId,
payload: cluster,
err: err,
});
} finally {
await Counters.tryFlush();
}
}