Тёмный

Docker's New "Start Interval" Feature 

Justin Hammond
Подписаться 10 тыс.
Просмотров 90
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@TechySpeaking
@TechySpeaking 7 месяцев назад
first
@JustinHammond
@JustinHammond 7 месяцев назад
Let’s gooo
@ElCerdoBlanco
@ElCerdoBlanco Месяц назад
Actually a great feature. I wish this was documented better. Am I right, that the retries are ignored during the startup and it basically retries the health check, until it succeeds? What happens if the service crashes during startup? Will it be marked as unhealthy?
@JustinHammond
@JustinHammond Месяц назад
So the start interval lets you set a separate interval to do health checks during startup. For instance, during startup I might want to run the health check every couple seconds until I know it’s healthy vs once it’s in a stable state, I might only want to check each minute. As to your question about crashing on startup, it’ll be marked as unhealthy once the number of retries have been exceeded
@ElCerdoBlanco
@ElCerdoBlanco Месяц назад
@@JustinHammond ah, okay. So the `retries` parameter is reused? That means setting the retries to a low number and starting to check early and often will most probably lead to an unhealthy container. Doesn't this make docker kill and restart the container? This would be a big error source, if the startup significantly differs on different machines.
@JustinHammond
@JustinHammond Месяц назад
@ElCerdoBlanco totally depends. For me, many of my containers start super fast. I use Traefik to route traffic to them but they aren’t discoverable until marked as healthy meaning in my earlier example that a one minute health check means that on deployment there would be one minute of downtime. With this new feature I can set it to check every second during the first 10 seconds so it’s almost seamless. It all depends on how you configure it
Далее
Being Competent With Coding Is More Fun
11:13
Просмотров 85 тыс.
Unifi Backups Suck, So I Fixed Them
8:19
Просмотров 832
How does a Computer understand your Program?
10:18
Просмотров 107 тыс.
I Made a Big Mistake, and So Can You!
4:51
Coding Shorts 108: Using TestContainers in .NET Core
17:27
How to Rough-In Electrical Wiring (Basement)
15:17
Просмотров 1 тыс.
Live coding and Q/A with the Angular Team | January 2024
1:28:04
What's new in Angular v17
5:08
Просмотров 42 тыс.