2019-02-25 10:20:33
Old logfiles for the database node and pool (LOG.old*) are not restricted in growth or deleted. In particular the log files for the node db can grow to several gigabytes after a few months.
Suggestion: Limit size via config files or delete after x days.
Workaround: Delete old files via cron job
GitHub
2019-02-25 18:20:08
*https://github.com/snowblossomcoin/snowblossom/compare/6fa8832c8654...6317e65cf476*
https://github.com/snowblossomcoin/snowblossom/commit/6317e65cf4765af731d46c9ad4e9f438e0ee5963 - Reduce rocksdb log retention to 5
GitHub
2019-02-25 18:20:27
[snowblossomcoin/snowblossom] Issue closed by fireduck64
GitHub
2019-02-25 18:22:24
https://cluelessperson.com/snowblossom/bamboo/browse/SNOW-LAT-20 Responsible Users: fireduck64
CluelessSnowBuilder
2019-02-25 18:23:53
https://cluelessperson.com/snowblossom/bamboo/browse/SNOW-ANDROID-32
CluelessSnowBuilder
2019-02-25 18:27:11
why rotate yourself at all?
Rotonen
2019-02-25 18:27:42
These are not human readable logs, they are binary db transaction logs
Fireduck
2019-02-25 18:27:53
so to me, it makes sense to let the db layer handle it
Fireduck
2019-02-25 18:29:37
gotcha, ~ postgres write ahead logs
Rotonen
2019-02-25 18:30:43
yeah, at least I think that is what they are
Fireduck
2019-02-25 18:30:59
i guess in production one would have some pickup method and stream those to a cold (lukewarm?) spare?
Rotonen
2019-02-25 18:31:20
rocksdb users are not very verbose
Rotonen
2019-02-25 18:31:55
of course, my normal pessimism applies. Never trust a single filesystem or database with anything critical.
Fireduck
2019-02-25 18:32:18
yeah, if you have an authoritative rocksdb that you absolutely could not lose state on I'm not sure what you would do
Fireduck
2019-02-25 18:32:25
probably not use rocksdb for that
Fireduck
2019-02-25 18:32:42
at least without a paxos layer on top
Fireduck
2019-02-25 18:33:09
do you need the performance there? JDBC / sqlite / postgres?
Rotonen
2019-02-25 18:34:06
the best arguments i see for rocksdb have to do with tight hardware coupling, which is unlikely to happen in this kind of a scope
Rotonen
2019-02-25 18:34:26
for cryptocurrency stuff, were people love having everything locally hosted, rocksdb is great. It is fast and holds a lot of data without breaking.
Fireduck
2019-02-25 18:34:55
true, sqlite is nightmare fuel
Rotonen
2019-02-25 18:35:08
if I actually needed an authoritative state for something, I'd probably pay the dollars for google bigtable or spanner and make it their problem
Fireduck
2019-02-25 18:35:13
google is really good at that sort of thing
Fireduck
2019-02-25 18:35:29
but minimum cluster size is on the order of $6/hr so not for cheap little things
Fireduck
2019-02-25 18:36:37
well, that’s way cheaper than a competent DBA, and especially so if you need 24/7 rotations and sickleave redundancy
Rotonen
2019-02-25 18:37:35
yeah, my estimate is that it takes about 6 people to cover 24/7 if you need to treat them like humans
Fireduck
2019-02-25 18:38:51
If mostly up and mostly not my problem is good enough, the Amazon RDS or Google Cloud SQL are quite good.
Fireduck
2019-02-25 18:39:42
yeah, that team, including side costs, seats, walls, would probably run at up to 2M per year
Rotonen
2019-02-25 18:39:57
aka why managers love IaaS
Rotonen
2019-02-25 18:40:08
right
Fireduck