スキップしてコンテンツを表示

AWSEIP and latency, timeour error

0

Hello, i'm trying to move a Elastic IP from a EC2 instance to another using Pacemaker and Corosync. The problem is:

Timed Out: Resource agent did not complete within 30s

And the resource is blocked. I have to delete the resource and configure newly. 3-4 months ago, same configuration y no problem so I think is a AWS related problem.

Any hint?

Regards

質問済み 1年前352ビュー

1回答
0

This timeout issue when moving an Elastic IP between EC2 instances using Pacemaker and Corosync is likely related to API latency or connection issues.

When you're experiencing the "Resource agent did not complete within 30s" error, it indicates that the operation to reassign the Elastic IP is taking longer than Pacemaker's default timeout allows. This could be happening for several reasons:

  1. Increased API latency in AWS services - The AWS API calls to disassociate and reassociate the Elastic IP might be taking longer than they did 3-4 months ago.

  2. Network connectivity issues - There might be network performance problems between your instances and AWS API endpoints.

  3. Socket timeout configuration - If you're using the AWS Java SDK in your implementation, the default socket timeout is 30 seconds, which might be insufficient for EIP operations.

To resolve this issue, you could:

  1. Increase the timeout value in your Pacemaker resource configuration. You can modify the operation timeout for the specific resource to allow more time for the EIP reassignment to complete.

  2. Check your instances' network performance metrics in CloudWatch to identify any bandwidth or connectivity issues.

  3. If your implementation uses the AWS SDK, consider increasing the socket timeout value to accommodate potentially longer API response times.

  4. Verify that your instances have the proper IAM permissions to modify Elastic IP associations.

  5. Try bypassing any load balancers or proxies when making the API calls to rule out additional latency sources.

If the issue persists, you might want to implement a more resilient approach with automatic retries or consider using AWS-native solutions like Auto Scaling groups with load balancers instead of managing EIP movements directly.
Sources
Solving 'Read Timed Out' Error and High Latencies in Amazon Bedrock with AWS Java SDK Client | AWS re:Post
Troubleshoot high response times and ECS latency issues | AWS re:Post
Troubleshoot latency on calls or requests to Amazon ECS tasks | AWS re:Post

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ