Adjust the memory allocation afforded to Hyperglance if the application is slow or you are seeing out of memory errors.
Editing Memory Allocation
If you are experiencing Out Of Memory errors or slowdowns then increasing the memory allocation should help.
First, find out the default memory allocation by looking for MAX_HEAPSIZE in default.env:
cat /usr/local/hyperglance/defaults.env
Unless you know how much you need then a reasonable approach is to double your default memory allocation. You can configure a custom allocation by editing config.env:
Edit file:
/var/lib/data/hyperglance/config.env
Set memory allocation to reflect recommendation (example shows 4096meg/4GB):
MAX_HEAPSIZE=4096m
Re-start the services:
sudo docker-compose -f /etc/docker-compose.yml up -d
Recommended Instance/VM Sizing
Hyperglance Variant | Recommended RAM | Recommended Heap Size | Example Instance/VM Size |
250 Resources | 4GB | 2GB |
AWS: t3.medium |
500 Resources | 4GB | 2GB |
AWS: t3.medium |
1000 Resources | 8GB | 5GB |
AWS: t3.large |
2000 Resources | 8GB | 5GB |
AWS: t3.large |
5000 Resources | 8GB | 5GB |
AWS: t3.large |
10000 Resources | 16GB | 12GB |
AWS: t3.xlarge |
20000 Resources | 32GB | 28GB |
AWS: t3.2xlarge |