I am having the same high cpu usages occasionally. How do u enable gzip? and brotli at the same time? I have added below lines to my nginx.conf but it seems only brotli is working, gzip is not recognized by gtmetrix or pingdoom sites.
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
gzip_proxied any;
gzip_comp_level 5;
gzip_types text/plain text/css application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/x-icon image/bmp image/svg+xml;
gzip_vary on;