|
|
|
|
|
by scarface74
2329 days ago
|
|
If you’re logging to a local disk on ephemeral VMs, that doesn’t make the situation any better. That’s why you need a central logging facility. If you’re using AWS, you could store your structured JSON logs in S3 and query them with Athena.
(https://medium.com/quiq-blog/store-json-logs-on-s3-for-searc...) Of course there are other ways both using AWS and third party services. Centralized logging is a solved problem. AWS isn’t going to run out of disk space any time soon. You could also use a lifecycle policy to delete old logs or move them to a lower cost storage depending on your retention policy. I’m not saying that I have never had to log on to a VM to troubleshoot, but that’s a sign of the need of better logging. And if my logging infrastructure isn’t good, how pray tell will I troubleshoot my programs running on Lambda or Fargate? |
|
> how pray tell will I troubleshoot my programs running on Lambda or Fargate?
That is indeed a big problem running on Lambda and Fargate.
In my experience, Fargate isn't very commonly used and Lambda is used for only relatively simple things.