Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by simplecto on Sunday January 31, 2021 @08:02AM
(#25978492)
Wow, lots of good questions coming out of this :-)
1. I chose Postgres because I have the need to remotely manage as well as pull metrics into grafana and metabase. That is simply not possible with SQLite.
I realize this post should be a series of posts where I go deep on all parts of the SimpleCTO stack, so to speak.
2. My monitoring is quite limited because. Generally I use netdata to get a quick overview on health, and I export that into grafana. I rely on Hetzner for actual healthcheck and uptime monitoring. Sentry tells me if my code starts throwing too many exceptions or errors.
Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by spiffytech on Saturday January 30, 2021 @11:00PM
(#25975774)
I love SQLite, but it really doesn't have a great answer to HA/failover. If you enable WAL mode, even NFS is off the table.
Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by t0astbread on Saturday January 30, 2021 @11:17PM
(#25975877)
Right, but in this case that's not a thing anyways since there's only one server.
Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by IgorPartola on Sunday January 31, 2021 @12:21AM
(#25976258)
The main reason for me is that Postgres can be backed up while online, and I can scale up to multiple servers if I suddenly need to. Not so much with SQLite where if a small project suddenly hit the front page of whatever I would suddenly need to get really creative.
Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by t0astbread on Sunday January 31, 2021 @01:36AM
(#25976623)
I'm not sure how well the architecture described in the article lends itself to horizontal scaling since everything assumes it's on the same machine (I think?). Granted, if you build for horizontal scaling I agree, a client/server database is the way to go.
As for backups, SQLite also supports backups while another process is using the database.
Re:Docker, Django, Traefik, and IntercoolerJS: My go-to stac...
by 14u2c on Sunday January 31, 2021 @05:43AM
(#25977806)
This brings to mind a question: would it be possible to run simply run multiple instances of SQLite on independent hosts that are backed by single shared filesystem, such as AWS's EBS? Of course they'd be blocked on writes but it does seem that SQLite3 supports the read concurrency.
1. If you're not going for scalability why Postgres and not SQLite?
2. What does your monitoring look like? I've read something about Grafana and Hetzner dashboards in the comments but what exactly do you use and where do you run that? Also, do you have anything for intrusion detection specifically? (I'd be extremely paranoid about that.)