bootique / bootique-jetty

Provides Jetty integration with Bootique

Home Page:https://bootique.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pool utilization threshold health check has out of range default "warn" and "critical" levels

andrus opened this issue · comments

Notice how the default range for pool utilization health check is created:

 return ValueRange.builder(Percent.class)
                .min(Percent.ZERO)
                .warning(new Percent(70))
                .critical(new Percent(90))
                .max(Percent.HUNDRED).build();

"70" means "7000%" and "90" - "9000%". Need to use fractions of 1 instead.