From e71806fc3b99a9bfb6cea8ca5836c95bf9a50d21 Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Wed, 21 Jan 2015 14:14:04 -0700 Subject: [PATCH] Documenting new 'cpu' directive --- Caddyfile-Directives.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Caddyfile-Directives.md b/Caddyfile-Directives.md index b4a78b1..6c9a8bb 100644 --- a/Caddyfile-Directives.md +++ b/Caddyfile-Directives.md @@ -5,6 +5,15 @@ This list is presented alphabetically. The order in which directives appear in t ## List of directives +#### cpu + +Limits use of processor cores to the number (or percentage) specified. By default, all cores may be used to serve requests. This directive is actually process-wide, meaning that it applies to ALL servers started with the same instance of `caddy`. If specified multiple times, the highest value is used. Can be a number (at least 1) or a percent (between 1% and 100%). + +``` +cpu 50% +``` + + #### ext Internally adds extensions to the requests. Extensions will be tried in the order listed. This allows you to easily serve cleaner URLs.