You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
For educational purposes I am building a small CDN server, I am using Caddy and your cache plugin for this.
I have a problem, the cache-handler uses too much RAM in my opinion.
I use loader.io to benchmark. When benchmark run and server handle traffic, memory usage in server grows very fast.
At startup, the server uses about 300mb of RAM.
When I turn on benchmark loader.io with settings:
Mantain client load - 0 to 500
Accept-Encoding - gzip,deflate,br
loader.io only loads a CSS file of about 1kb in size.
At the end of the test the server handles about 120k requests per minute and RAM consumption rises to 1.3GB.
It should be noted that with nginx only 1 CPU the server can handle 250k requests per minute with a larger number of connections, so performance is not at the highest level.
I added your plugin to Caddy using the command - caddy add-package github.com/caddyserver/cache-handler
Server - 2 CPU ARM Ampere Altra, 4GB ram, Ubuntu 22.
Caddy version 2.7.4
My caddy config
Global
{
order cache before rewrite
cache
}
# Import all websites configs
import websites/*
Hi
For educational purposes I am building a small CDN server, I am using Caddy and your cache plugin for this.
I have a problem, the cache-handler uses too much RAM in my opinion.
I use loader.io to benchmark. When benchmark run and server handle traffic, memory usage in server grows very fast.
At startup, the server uses about 300mb of RAM.
When I turn on benchmark loader.io with settings:
At the end of the test the server handles about 120k requests per minute and RAM consumption rises to 1.3GB.
It should be noted that with nginx only 1 CPU the server can handle 250k requests per minute with a larger number of connections, so performance is not at the highest level.
I added your plugin to Caddy using the command - caddy add-package github.com/caddyserver/cache-handler
Server - 2 CPU ARM Ampere Altra, 4GB ram, Ubuntu 22.
Caddy version 2.7.4
My caddy config
Global
Website
Have any of you tested Caddy and cache-handler in this way? In what could there be a problem?
Greetings
The text was updated successfully, but these errors were encountered: