PGRST_DB_ROOT_SPEC is not set anymore by start_postgrest,sh script to reduce PostgREST CPU usage
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 :-)
-
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.
Please sign in to comment
