Skip to content

Cron job to be run on a SolusVM master that uses SolusVM IP block priorities to run IP blocks to set percent used threshold and then start assigning IPs from other blocks below the specified threshold threshold.

Notifications You must be signed in to change notification settings

jonathanspw/solusvm-80ipblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

solusvm-80ipblock

Cron job designed to be run on the SolusVM master. It will automatically adjust IP block priorities to help you run their usage up to a predefined threshold.

Requires SolusVM >= 1.17

Options:

define('DEFAULT_PRIORITY',0); Default blank priority to be used. This should probably be 0. Blocks above the threshold are reset to this.

define('HIGH_PRIORITY',100); priority to be assigned for blocks that should be used first. Solus pulls first from the block with the highest numbered priority.

define('PERCENT_THRESHOLD',82); Set the percent used threshold that the script should let IP blocks go to. After reaching this threshold their priority is reset to 0 unless they drop back below the threshold.

define('COUNT_RESERVED_AS_USED',true); Should reserved IPs be counted as used

define('DYNAMIC_BALANCING',true); Use dynamic block balancing to attempt to get blocks to equal usage and maintain it?

About

Cron job to be run on a SolusVM master that uses SolusVM IP block priorities to run IP blocks to set percent used threshold and then start assigning IPs from other blocks below the specified threshold threshold.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages