내용으로 건너뛰기

How does AppConfig service figure out the targets for a deployment?

0

Hi,
We are looking into using appconfig for our runtime configuration. From the user guide, it is not clear how to set the targets for an environment. If the targets setting is not required, how does the deployment know how many hosts to deploy for each step? For each step, according to the strategy, there are number of targets will get deployed, how does the appconfig service decide which hosts (client ids) to deploy?

Thanks!

질문됨 6년 전2.5천회 조회
3개 답변
0

Targets are defined dynamically by the unique ClientId parameter used to call the GetConfiguration API (https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_GetConfiguration.html).

During a deployment, we probabilistically assign the ClientId to a percentage bucket, 0-99. When the percentage complete for a deployment passes the percentage bucket the ClientId was assigned, it receives the new deployment.

For example, say you use a linear deployment strategy with a deployment duration of 5 minutes and a growth factor of 10. If you have 100 targets, then roughly 10 targets will receive the new deployment every 30 second interval.

AWS
답변함 6년 전
  • Is this still how the targets are selected, given the API has changed to recommend StartConfigurationSession now?

    Secondary question: how are the targets defined, are they the end user/caller of say an API/Microservice or the instance of the AppConfigClient used to retrieve configuration by the API/Microservice

0

Thanks. That's very helpful. Is it possible that the same clientId might be assigned to a different percentage bucket in different deployments even for the same deployment strategy?

답변함 6년 전
0

We don't make any guarantees about when a specific target will receive a deployment. The behavior will be stable within a deployment, but you shouldn't make any assumptions that ordering in one deployment will be similar in the next.

AWS
답변함 6년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠