Settings - AQuadroTeam/CellsCycle GitHub Wiki

Settings for config.txt

Field Example Description
LogFile log.txt The relative path of the file where the system writes log
Verbose True Specify if the system writes logs only on LogFile (False) or in console and LogFile (True)
PreallocatedPool 1000000000 Specify the ram available to store values in Bytes. It must be less than available ram on system where application is executed. You must consider a light overhead due to data to maintain values in memory, it's near to be 10 MB for each million of values. There's no a too large value, it was tested at max at 31 GB on a 32 GB ram machine.
SlabSize 1000000 Specify the dimension of each slab in Bytes, that represents the maximum size of a single value.
GetterThreadNumber 2 Specify the number of threads reserved for get operations from memory. 1 is min
MasterSetPort 5550 Specify TCP port for set operations of master memory
MasterGetPort 5551 Specify TCP port for get operations of master memory
SlaveSetPort 5552 Specify TCP port for set operations of slave memory
SlaveGetPort 5553 Specify TCP port for get operations of slave memory
InternalChannelPort 5557 Specify TCP port for internal channel operations
ExternalChannelPort 5558 Specify TCP port for external channel operations
MemoryObjectPort 5559 Specify TCP port for memory transfer operations
ServiceThreadNumber 4 Specify the number of threads reserved to entrypoint memcached like interfaces
ClientEntrypointPort 5555 Specify the TCP port for memcached like interface
ScalePeriod 60 Number of seconds of usage metricator period. Interval of time between checks
GetScaleUpLevel 0.5 Value between 0,1 to trigger scale up from get threads usage percent. When Get threads usage level reaches that value, system will requests a scale up. 0 means ignore value
GetScaleDownLevel 0.001 Value between 0,1 to trigger scale down from get threads usage percent. When Get threads usage level reaches that value, system will requests a scale down. 0 means ignore value
SetScaleUpLevel 0.5 Value between 0,1 to trigger scale up from Set thread usage percent. When Set thread usage level reaches that value, system will requests a scale up. 0 means ignore value
SetScaleDownLevel 0.001 Value between 0,1 to trigger scale down from set thread usage percent. When set thread usage level reaches that value, system will requests a scale down. 0 means ignore value
AwsImageId ami-9707fcf8 This string identifies the AWS ami id to invoke launching a new instance of the application.
AwsSecurityGroup SSHToAll This value identifies the security group applied to new AWS EC2 instances. Security group must permit telnet and ssh incoming communication.
AwsKeyName CellCycleBot Name of key used for ssh communication for new AWS EC2 instances.
GitBranch master New Instances, booting, pull from git the current source of the application. Updating AMI image is expensive, in this way we can mantain an old version of AMI image and update automatically the code. This value identifies the branch where you are working on.
StartFileRelativePath startOnBoot.py This is the relative path (from CellsCycle root folder) to file that is invoked on boot on new EC2 instances.
AwsProfileName default aws profile name in ~/.aws folder
MaxInstance 12 max aws instances
MinInstance 5 min aws instances