Open micahstubbs opened 6 years ago
as a consequence of writing to the filesystem, we need a way of resizing pngs from the original dimensions to thumbnail dimensions
this looks useful, https://malcoded.com/posts/nodejs-image-resize-express-sharp
https://unix.stackexchange.com/questions/225401/how-to-see-full-log-from-systemctl-status-service
to see the logs from our screenshot-bot
systemd process and follow their progress
journalctl -u screenshot-bot -f
to find a string mdcscry
in filenames in a directory
tree -f | grep mdcscry
nginx autoindex is pretty nifty
https://www.keycdn.com/support/nginx-directory-index
location /somedirectory/ {
autoindex on;
}
check out the result at https://screenshot.micah.fyi/screenshots/
ok, so wrapping up the main tactics to improve performance that worked are:
4
, down from the initial 12
block batch sizeok, after doing this scale exercise and bulk processing ~28k blocks, I'm resizing the instance from
16 vCPU, 104 GB memory
to
1 vCPU, 6 GB memory
some conversation from the d3 slack
improve scale performance
better handle concurrency for