Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cavalcade runner memory usage leak
We recently enabled `opcache.enable_cli` so Cavalcade Runner now has the opcache enabled. This is a bug, it turns out in the opcache whereby including files over and over again will lead to a memory leak. See php/php-src#9812 for details. This bug causes a very large memory leak in Cavalcade Runner because we naively re-init the Cloudwatchclient on every call to put_metric_data() etc. So, it makes sense to only create the cloudwatch client once. THis should also drastically reduce the impact of the PHP bug.
- Loading branch information