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

Improve proxy nginx performance, optimise logs #31

Open
dmytrotkk opened this issue Nov 17, 2022 · 0 comments
Open

Improve proxy nginx performance, optimise logs #31

dmytrotkk opened this issue Nov 17, 2022 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@dmytrotkk
Copy link
Contributor

Problem

  1. Due to the high load users sometimes experience timeout errors:
Error: missing response (requestBody="{\"method\":\"eth_getBlockByNumber\",\"params\":[\"latest\",false],\"id\":47,\"jsonrpc\":\"2.0\"}", requestMethod="POST", serverError={"errno":-60,"code":"ETIMEDOUT","syscall":"connect","address":"18.118.22.234","port":443}, ...
  1. Logs in nginx don't include proxy redirect path
  2. Logs file size limit is too low

Solution

A few changes need to be made to fix it:

  1. Tune nginx config to use all 8 cores
  2. Enable and configure ngx_http_stub_status_module in nginx to see live stats
  3. Increase log file size 10 times 👀
  4. Add proxy path to logs
@dmytrotkk dmytrotkk self-assigned this Nov 17, 2022
@dmytrotkk dmytrotkk added bug Something isn't working enhancement New feature or request labels Nov 17, 2022
@gannakulikova gannakulikova moved this from To Do to In Progress in SKALE Engineering 🚀 Nov 17, 2022
@PolinaKiporenko PolinaKiporenko moved this from In Progress to Code Review in SKALE Engineering 🚀 Nov 22, 2022
@OlgaSkale OlgaSkale moved this from Code Review to Ready For Release Candidate in SKALE Engineering 🚀 Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

1 participant