-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firecamp-service-cli ignores memory parameters #64
Comments
Which service are you creating? Could you please post all parameters? The reserve-memory could be overwritten for some services using JVM, such as Cassandra/Kafka/ZooKeeper/ElasticSearch. For example, Cassandra JVM heap Xms and Xmx are set to the same. If Cassandra JVM heap size is set to 1024MB, the reserved memory is set to 1024MB as well. This avoids the JVM memory get swapped out to disk, which will have big impact on JVM performance. |
I am running cassandra as follows: |
Thanks for posting the detail cli. I could not reproduce it. Could you please post the screen shot for the container definition? 256MB is too small for a 3 nodes Cassandra. The Cassandra container image includes jolokia agent for monitoring. The JVM for a 3 nodes Cassandra needs to be at least 768MB. You will need to use the t2.small instance for test. |
for test i can give it 768MB |
Looks you are using the latest release. Tried on my testbed.
Both memory and memoryReservation are set correctly. While, in your output, memory is null and memoryReservation is 1024.
|
Not sure why your testbed has this weird behavior. Could you please check the system?
|
I ran it again btw my script took it from the same s3 latest link, it was ok with memory BUT i now task creation fail
task definition |
Not sure how you create the service. Looks like the service does not exist in the system. |
Hey i tries again with less memory and it worked. You run 2 more services manager and catalog which each take 128MB, thus 770 was probably on the edge, i tried 600 and it runs : ) |
Good to know that it worked :) Yes, we split the catalog service out. So there are 2 services each takes 128MB, other than 1 service with 256MB before. |
Where can i find more documentation in order to add a service like RabbitMQ to firecamp, unless you have soon plan to do it? |
For adding a new service, you could refer to Cassandra service. You will need to add a few things:
|
For scaling up the service, could refer to scaling up Cassandra. Currently you need to use nodetool to check the scaling is completely done. Scaling down is currently not supported. Scaling down requires Cassandra to recover the down replica from other nodes, which could be a heavy operation if the system has lots of data. The scaling for ElasticSearch and Redis are not supported yet. |
For future reference: I was able to fix "create ...: VolumeDriver.Create: Create, GetServiceAttr error DB RecordNotFound req {... map[]}" error by deleting task definition for that service and re-create the service from scratch. |
running the firecamp.template
logging to bastion host
running firecamp-service-cli with -reserve-memory=768
still the service task definition has: "memoryReservation": 1024,
And when testing vs t2.micro there isn't left 1024MB
The text was updated successfully, but these errors were encountered: