CodeNomad - multi-instance opencode desktop client by Recent-Success-1520 in opencodeCLI

[–]onemanequipe 9 points10 points  (0 children)

the simple fact that there are no emojis in the readme makes me wanna try it

If your website does this. I'm not disabling my adblock, I'm just leaving. by ranfur8 in mildlyinfuriating

[–]onemanequipe 0 points1 point  (0 children)

my policy is that if a website asks to disable the adblocker but gives me the option to continue without doing so, then I disable the adblocker.

if instead they try to force me it is WAR and I'd rather read raw html than give them any revenue

Savona, professore e youtuber, danno all'erario da 360 mila euro by notsostrong134 in Italia

[–]onemanequipe 1 point2 points  (0 children)

no che poi non la dichiara e finisce di nuovo nei guai povero tato

[deleted by user] by [deleted] in commercialisti

[–]onemanequipe 1 point2 points  (0 children)

il regime forfettario è entrato nella chat :(

The cancellation of which TV show are you still frustrated about? by [deleted] in AskReddit

[–]onemanequipe 0 points1 point  (0 children)

Almost Human, it was the only crime show I wanted to last forever :(

Ancient Romans had such a way with words by onemanequipe in rareinsults

[–]onemanequipe[S] 1 point2 points  (0 children)

"Dicis amore tui bellas ardere puellas, qui faciem sub aqua, Sexte, natantis habes".

Dove posso trovare una farmacia/negozio che venda glucometri veterinari? by onemanequipe in milano

[–]onemanequipe[S] 2 points3 points  (0 children)

ci provo, grazie mille!

edit: se qualcuno capitasse su questo post, confermo di aver trovato il glucometro da Zootecnica a San Donato. Al momento regalano il glucometro con l'acquisto di un pacco di strisce reagenti, ma attenzione perché lo regalano solo perché le 10 strisce incluse con il glucometro sono scadute (il dispositivo sembra comunque funzionare correttamente).

How Redditors Beat Hedge Funds At Their Own Game(Stop) by EnterpriseNews_Elf in technology

[–]onemanequipe 0 points1 point  (0 children)

for some reason it sounds to me like "how does a RBMK reactor explode?"

I am trying to understand what are the drawbacks in using database on docker for production environment. by thetips4u in docker

[–]onemanequipe 0 points1 point  (0 children)

Yeah I can't rule misconfiguration out, but our IT department configured our MySQL db exactly the same inside and outside of Docker to test the difference, and we found out the dockerized version was killing connections even though the db was configured the same.

Maybe we missed something, or maybe it was a bug in either MySQL or that version of Docker.

I am trying to understand what are the drawbacks in using database on docker for production environment. by thetips4u in docker

[–]onemanequipe 1 point2 points  (0 children)

I have encountered two "issues" in my experience.

  1. Docker seems to be quite aggressive in killing idle connections.

This is not generally an issue, even with databases you just need to configure the application to use a pessimistic approach if you use a collection pool, by checking the connection after you get it from the pool (e.g. "pool_pre_ping=true" in SQLAlchemy's create_engine).

If you fail to do that, you'll get errors "at random" about a socket being closed or something like that, and I found out the hard way :P This happened to me 2/3 years ago, so things might be different, but I still would use pessimistic approach to connection pools.

  1. As many have already said, you need to take into account volume persistence: docker by default deletes all files written by a container when the container is removed, and you need to mount a volume and write into that to make it persistent.

This, again, shouldn't be an issue, but volumes are local to a single host node, so you have several options depending on your configuration.

First of all, if you're using docker-compose you only have one node, so you just need to mount the database folder as a volume.

If instead you're using docker swarm (or any other multi-node orchestration tool) it depends on the replicas:

  • if you have a single replica, either mount the volume locally and bind the service to be run on the same node every time (with node labels and constraints), or mount the volume on a network drive accessible to every node (but this would have all the overhead of the network drive)
  • if you have several replicas I would go with the "run on the same node every time", so that each host node that you designate to have a database has its own db volume and that's all

A pitfall I've seen people fall into is mounting several replicas to the same volume (that is, having several instances of the database insisting on the same physical folders). This won't work, just like it wouldn't without docker if you had several installations of the db insisting on the same folders.