Skip to content

hot_restart.rst: update outdated detailed information#17653

Merged
ggreenway merged 5 commits intoenvoyproxy:mainfrom
qinggniq:hot_restart
Aug 12, 2021
Merged

hot_restart.rst: update outdated detailed information#17653
ggreenway merged 5 commits intoenvoyproxy:mainfrom
qinggniq:hot_restart

Conversation

@qinggniq
Copy link
Contributor

Signed-off-by: qinggniq livewithblank@gmail.com

After #5910, stats are transported over unix domain rather than shared memory.

Commit Message: hot_restart.rst: update outdated detailed information
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: qinggniq <livewithblank@gmail.com>
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
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
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
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
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
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.

Signed-off-by: qinggniq <livewithblank@gmail.com>
Signed-off-by: qinggniq <livewithblank@gmail.com>
Signed-off-by: qinggniq <livewithblank@gmail.com>
Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

Thanks for this correction!

/wait

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. All counters are from the old process to the new process over the unix domain, while part
Copy link
Member

Choose a reason for hiding this comment

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

"All counters are sent from the"

Copy link
Member

Choose a reason for hiding this comment

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

s/"while part of gauges are transported"/"and gauges are transported except those marked with NeverImport"/

* The two active processes communicate with each other over unix domain sockets using a basic RPC
protocol.
protocol. All counters are from the old process to the new process over the unix domain, while part
of gauges are transported. After hot restart finished, the gauges transported from the old process
Copy link
Member

Choose a reason for hiding this comment

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

"After hot restart is finished"

@ggreenway ggreenway self-assigned this Aug 11, 2021
Signed-off-by: qinggniq <livewithblank@gmail.com>
Copy link
Member

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@ggreenway ggreenway merged commit 07139ff into envoyproxy:main Aug 12, 2021
@qinggniq qinggniq deleted the hot_restart branch August 12, 2021 15:05
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants