Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: html5 server log improvements #15699

Merged

Conversation

ramonlsouza
Copy link
Member

What does this PR do?

Makes the following changes so it becomes easier to monitor the health of the html5 servers:

  • adds timestamp and information about server instance to server logs
  • adds a new log message with cpu/memory usage for each server

Current

info : Added presentation id=8ed482ae3f9e099142b9a939c663d0ee41e66cc9-1663336566249 meeting=197cc79b2223ce7871d7059d9b990a127aecd8df-1663336566196 {}

After changes

2022-09-16T13:56:13.306Z backend-1 [info] : Added presentation id=8ed482ae3f9e099142b9a939c663d0ee41e66cc9-1663336566249 meeting=197cc79b2223ce7871d7059d9b990a127aecd8df-1663336566196 {}

server health log message

2022-09-16T13:22:04.818Z frontend 1 [info] : Server health {"memoryUsage":{"rss":"111.24 MB","heapTotal":"59.7 MB","heapUsed":"55.67 MB","external":"23.42 MB"},"cpuUsage":{"system":"0.17 MB","user":"2.88 MB"}}

@sonarcloud
Copy link

sonarcloud bot commented Sep 16, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@prlanzarin
Copy link
Member

adds a new log message with cpu/memory usage for each server

FYI an alternative that is independent of logging and gives more operational metrics

# Whether default metrics for Node.js processes should be exported
collectDefaultMetrics: false

@ramonlsouza ramonlsouza merged commit fd9bd51 into bigbluebutton:v2.5.x-release Sep 21, 2022
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.

None yet

3 participants