Commit 3c556bc8 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

PGRST_DB_ROOT_SPEC is not set anymore by start_postgrest,sh script to reduce PostgREST CPU usage

parent 1d590787
Loading
Loading
Loading
Loading
  • @wrona Could you add a comment about what this does and how much CPU usage is reduced by the change? Inquiring minds want to know :-)

  • Author Owner

    DB_ROOT_SPEC story started on analysis why hive-staging load is so high, even postgresql didn't take all of it. It appeared that postgREST processes each a lot of CPU when traffic is sent there. Guys found this: https://github.com/PostgREST/postgrest/pull/1794 Because there was no rewriter container, requests were sent to the root and I think it consumed more CPU. @mickiewicz you had some grafana measures where Postgrest CPU impact was recorded.

  • Marcin @Ickiewicz ·
    Developer

    image

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment