Myst performance management
Consider the following options for performance and capacity management of Myst.
Linux Entropy (random/urandom)
The OS may be running out of entropy. See the Oracle Support article below for more information. Changing from /dev/random
to /dev/./urandom
not only significantly improves OFMW but will improve Myst SSH connectivity time as Myst also relies on Java.
Platform Instance Action Checker
Myst Studio creates a background thread for every platform instance. When each thread executes it consumes seconds of CPU time to check for new actions against its platform instance.
As the the number of platform instances increase the threads will begin to overlap each other resulting in constant high CPU usage.
Use the fc.quiet_period_sec.platform_instance
to reduce the platform instances' background check intervals. The default is 15
seconds.
The value can be roughly formulated to <number_of_platform_instances> X 2
. For example, for 60 platform instances try experimenting with 120 (seconds).
Edit the
fc-configuration.properties
.
docker exec -ti myststudio_web bash vi /usr/local/tomcat/conf/fusioncloud/fc-configuration.properties
Restart the container.
docker restart myststudio_web
Improving Log Rotation to Reduce Disk Usage
Add log rotation in the docker-compose.yml
file to reduce disk usage. This can be added to any of the services inside the file.
Edit the
docker-compose.yml
Set the values suitable as per your environment.
Restart Myst which will recreate the web container with the new changes
cd /opt/myst-studio/bin ./restart.sh
019-04-15 12:52:50,555 [d9-faa98740671a] ERROR c.r.f.p.c.p.s.InvokeMyST - Error java.lang.Exception: Error occurred in the remote agent 2019-04-15 12:52:50,885 [d9-faa98740671a] ERROR o.h.e.j.s.SqlExceptionHelper -Packet for query is too large (25134636 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.
Restart Myst which will recreate the db container with the new
max_allowed_packet
changes
cd /opt/myst-studio/bin ./restart.sh
Last updated