freebsd / freebsd-ports-haskell

Other
8 stars 13 forks source link

net-p2p/ogmios: Review rc script #74

Closed arrowd closed 2 years ago

arrowd commented 2 years ago
reqlez commented 2 years ago

Reason uses real socket is because i am mounting the whole socket directory via nullfs, this is why i changed cardano-node to have socket under /socket/ directory instead of jail root.

I think one of the commits has some information about this.

ogmios does not have any other logging configuration as far as i'm aware? But i can look into this. I know cardano-node and cardano-db-sync i configured logging via json file.

arrowd commented 2 years ago

Reason uses real socket is because i am mounting the whole socket directory via nullfs, this is why i changed cardano-node to have socket under /socket/ directory instead of jail root.

Ah, right. And the ogmios itself runs under a jail, so it needs a nullfs mounted into it.

ogmios does not have any other logging configuration as far as i'm aware? But i can look into this.

The problem with -o ${logfile} is that these logs aren't rotated and can grow up to enormous sizes. If there is nothing useful in these logs, it can be removed. On the other hand, if logs are useful, but scarce, they can just be redirected to stdout.

reqlez commented 2 years ago

The problem with -o ${logfile} is that these logs aren't rotated and can grow up to enormous sizes. If there is nothing useful in these logs, it can be removed. On the other hand, if logs are useful, but scarce, they can just be redirected to stdout.

Let me review what kind of output there is, and logging options and i will get back to you.

arrowd commented 2 years ago

Any progress on this?

reqlez commented 2 years ago

Any progress on this? oh yea... i completely forgot about this one... checking now

reqlez commented 2 years ago

image So the logging is useful... however, there is not setting that i can do in config file or anything to redirect logs to something else.

How do you want to handle that ? Logs are not extremely spammy or anything it seems.

arrowd commented 2 years ago

How about cleaning them on the service start so that they wouldn't pile up?

reqlez commented 2 years ago

How about cleaning them on the service start so that they wouldn't pile up?

not a bad idea for now... unless we figure out a rotation later. but clear before the service actually starts since we need start-up logs if things don't work.

I honestly think we should do the same for cardano-node and db-sync ... if config file is bad, it will output to console and people won't be able to figure out why cardano-node is not starting.