Skip to content

log_ratelimit: allow all startup logs#469

Merged
AltraMayor merged 1 commit intoAltraMayor:masterfrom
cjdoucette:startup_logs
Apr 23, 2021
Merged

log_ratelimit: allow all startup logs#469
AltraMayor merged 1 commit intoAltraMayor:masterfrom
cjdoucette:startup_logs

Conversation

@cjdoucette
Copy link
Collaborator

Before the functional blocks launch (at the end of stage 3),
they are all run on the master lcore (0). Therefore, the rate
limit for lcore 0 is applied to all block initialization and
the network initialization.

In practice, lcore 0 is always assigned to the LLS block,
since we initialize it first. Therefore, the LLS rate limit
is applied to all startup logs.

This patch adds a flag to the log ratelimiting library,
which is only set when initialization is complete. Therefore,
all startup logs will be captured.

@cjdoucette cjdoucette added the bug label Apr 22, 2021
@cjdoucette cjdoucette added this to the First deployment milestone Apr 22, 2021
Copy link
Owner

@AltraMayor AltraMayor left a comment

Choose a reason for hiding this comment

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

log_ratelimit: allow all startup logs

@cjdoucette cjdoucette force-pushed the startup_logs branch 2 times, most recently from c816355 to e1f6ba3 Compare April 23, 2021 00:08
@cjdoucette
Copy link
Collaborator Author

Ready for another review.

Copy link
Owner

@AltraMayor AltraMayor left a comment

Choose a reason for hiding this comment

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

log_ratelimit: allow all startup logs

Before the functional blocks launch (at the end of stage 3),
they are all run on the master lcore (0). Therefore, the rate
limit for lcore 0 is applied to all block initialization and
the network initialization.

In practice, lcore 0 is always assigned to the LLS block,
since we initialize it first. Therefore, the LLS rate limit
is applied to all startup logs.

This patch adds a flag to the log ratelimiting library,
which is only set when initialization is complete. Therefore,
all startup logs will be captured.
@AltraMayor AltraMayor merged commit 73b7069 into AltraMayor:master Apr 23, 2021
@cjdoucette cjdoucette deleted the startup_logs branch May 12, 2021 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants