Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Termination event times match current time?#606

AnsweredbyLikithaVemulapalli
jcam asked this question inQ&A
Discussion options

Termination events seem to always have a time matching the current time. Am I misconfigured?
An example below, note that the time of the log is 18:18:40, the 'will be interrupted is 18:18:38, which is 2 seconds ago, not 2 minutes in the future.
I am running in queue mode, with an eventbridge rule sending a message directly to an sqs queue, with the termination handler monitoring the queue. I am guessing that since it received a spot interruption event that I have the eventbridge properly configured.

2022/03/21 18:18:40 INF Adding new event to the event store event={"AutoScalingGroupName":"eks-spot-20220320215137259900000017","Description":"Spot Interruption event received. Instance i-043d45e1968bebec7 will be interrupted at 2022-03-21 18:18:38 +0000 UTC \n","EndTime":"0001-01-01T00:00:00Z","EventID":"spot-itn-event-38623039373536612d303063362d633862322d333566362d626538613263363639653330","InProgress":false,"InstanceID":"i-043d45e1968bebec7","IsManaged":true,"Kind":"SQS_TERMINATE","NodeLabels":null,"NodeName":"ip-10-89-12-166.ec2.internal","NodeProcessed":false,"Pods":null,"StartTime":"2022-03-21T18:18:38Z","State":""}

You must be logged in to vote

Hello@jcam, we are returning the EventBridge event start time, in our case when instance received spot interruption. Current time is returned when we cannot parse the time in the specific format and we get a warning message thatUnable to parse time as RFC3339 from event, using current time instead., we cannot hardcode the time for spot interruption as it might take 2 or minutes to terminate the instance. But, yes the message needs to be modified to make it more clear, instead of mentioning aswill be interrupted.

Replies: 1 comment

Comment options

Hello@jcam, we are returning the EventBridge event start time, in our case when instance received spot interruption. Current time is returned when we cannot parse the time in the specific format and we get a warning message thatUnable to parse time as RFC3339 from event, using current time instead., we cannot hardcode the time for spot interruption as it might take 2 or minutes to terminate the instance. But, yes the message needs to be modified to make it more clear, instead of mentioning aswill be interrupted.

You must be logged in to vote
0 replies
Answer selected byLikithaVemulapalli
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@jcam@LikithaVemulapalli

[8]ページ先頭

©2009-2026 Movatter.jp