guardian / typerighter

Even if you’re the right typer, couldn’t hurt to use Typerighter!
Apache License 2.0
276 stars 12 forks source link

t4g.micro -> t4g.small #365

Closed jonathonherbert closed 1 year ago

jonathonherbert commented 1 year ago

What does this change?

We've had problems with boxes becoming unresponsive and cycling (no logs, hanging SSH sessions.) On inspection, the running program was taking up a significant amount of memory on the micro instance, which we think might be the cause:

Screenshot 2023-07-05 at 17 46 37

This PR bumps the instance size for the manager from micro to small. Since deploying to CODE, I've been unable to replicate the problem, and there's more free memory on the box:

Screenshot 2023-07-05 at 18 17 28

How to test

Tested by deploying to CODE. Since then, we haven't had a box cycle – I've given the test box a rinse with apachebench and I can't make it fall over, which is a promising sign (you'll need to replace the cookie with something current):

ab -n 100 -c 10 -H 'accept: */*' -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' -H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' -H 'cookie: _ga=GA1.3.545298348.1685975974; _gid=GA1.3.1852050354.1688377328; consentUUID=3cda161a-1282-4683-b81c-3fe8e68de5f5_21; consentDate=2023-07-05T09:26:05.167Z; features.override=dev-mode%3Dtrue; gutoolsAuth-assym=<add your panda cookie here>' -H 'sec-fetch-site: same-origin' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' 'https://manager.typerighter.code.dev-gutools.co.uk/rules'