Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
SailContainers::Core::ResourceManager
Inherits
Reference
<
Object
Constructors
new
(total_cores :
Int32
=
System
.cpu_count, initial_allocations :
Hash
(
String
,
String
) = {} of
String
=>
String
)
Source
Instance methods
active_allocations
Source
allocate_cpus!
(container_name :
String
, requested_cores :
Int32
) :
String
Source
release_cpus!
(container_name :
String
) :
Nil
Source
total_cores
Source