Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/root/intro/arch_overview/operations/hot_restart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ Envoy can fully reload itself (both code and configuration) without dropping exi
during the :ref:`drain process <arch_overview_draining>`. The hot restart functionality has the
following general architecture:

* Statistics and some locks are kept in a shared memory region. This means that gauges will be
consistent across both processes as restart is taking place.
* The two active processes communicate with each other over unix domain sockets using a basic RPC
protocol.
protocol. Statistics will be transported from the old process to the new process over the unix domain.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not transport all stats - It would be good to qualify

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean counters and gauges?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. For example, all gauges are not transported

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, during hot restart, all counters and gauges will be transported to the new process, but after the new process sending the terminate request, the new process will clean up the contributions of most gauges transported from the old process except hot_restart_generation stat. Am I misunderstand?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some gauges are transported and some are not. Each gauge is marked as never import, import, etc.

* The new process fully initializes itself (loads the configuration, does an initial service
discovery and health checking phase, etc.) before it asks for copies of the listen sockets from
the old process. The new process starts listening and then tells the old process to start
Expand Down