Giter Site home page Giter Site logo

Comments (9)

zeldovich avatar zeldovich commented on July 18, 2024

Thanks, this all seems like reasonable stuff we should do!

from go-algorand.

jecassis avatar jecassis commented on July 18, 2024

In case it is helpful, here is a script with several of the changes outlined above that we're doing on top of the default install.

from go-algorand.

zeldovich avatar zeldovich commented on July 18, 2024

Do you have any reference for systemd unit files being conffiles? (You say that we should be making algorand.service a conffile in the debian package.) A cursory check suggests that other Debian packages on my Ubuntu machine don't follow this plan, and I couldn't find anything in the Debian documentation saying that systemd unit files should be conffiles.

from go-algorand.

algobolson avatar algobolson commented on July 18, 2024

making the systemd unit file a conffile makes sense to me because if someone wanted to move the data directory (e.g. to fast SSD storage) they'd have to edit the systemd unit file.

from go-algorand.

zeldovich avatar zeldovich commented on July 18, 2024

A common way of doing that would be to make /var/lib/algorand a symlink to the disk where the operator wants to store the data, or mount the fast SSD storage with /var/lib/algorand as a mountpoint.

from go-algorand.

jecassis avatar jecassis commented on July 18, 2024

In my configurations /var/lib/algorand is the mountpoint. I benchmarked those 2 options using Phoronix Test Suite and symlink came back over 100% slower in run time.

That said, to avoid marking the systemd file as a conffile, you can do what I did in the script which is use an environment file to set ALGOD_OPTS. Of course, then, you'd also want that file as a conffile. Kind of a Catch-22.

from go-algorand.

algobolson avatar algobolson commented on July 18, 2024

Something I learned about systemd in the last couple weeks is that one doesn't need to edit algorand.service because it's possible to create algorand.service.d/override.conf ("override" can be anything, or multiple things, and they're evaluated in order as successive overlays to the base algorand.service). So, I don't think we need to add the algorand.service file as a 'conf' file in either package manager.

from go-algorand.

algobolson avatar algobolson commented on July 18, 2024

@jecassis see pull #169 for what should be most of these improvements

from go-algorand.

jecassis avatar jecassis commented on July 18, 2024

Finally got around to making and installing a specific build with this patch and tested it on our dev server. Looks good to me.

from go-algorand.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.