How to adjust Hyperglance's memory allocation

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
Azure: Standard_B2s
(or equivalent)

500 Resources 4GB 2GB

AWS: t3.medium
Azure: Standard_B2s
(or equivalent)

1000 Resources 8GB 5GB

AWS: t3.large
Azure: Standard_B2ms
(or equivalent)

2000 Resources 8GB 5GB

AWS: t3.large
Azure: Standard_B2ms
(or equivalent)

5000 Resources 8GB 5GB

AWS: t3.large
Azure: Standard_B2ms
(or equivalent)

10000 Resources 16GB 12GB

AWS: t3.xlarge
Azure: Standard_B4ms
(or equivalent)

20000 Resources 32GB 28GB

AWS: t3.2xlarge
Azure: Standard_B8ms
(or equivalent)