Esempio n. 1
0
        private void Run()
        {
            _agentServer = _environment.GetAgentServerObject(_agentServerArtifactId);

            int ram        = Convert.ToInt32(_agentServer.Memory / 1024 / 1024 / 1024);
            int cores      = _agentServer.ProcessorCores;
            int agentCount = _agentServer.AgentCount;

            if (ram > cores)
            {
                Spots = Convert.ToInt32((cores * _adjustmentFactor) - agentCount);
            }

            else if (cores > ram)
            {
                Spots = Convert.ToInt32((ram * _adjustmentFactor) - agentCount);
            }
        }