Comments (9)
Thanks, this all seems like reasonable stuff we should do!
from go-algorand.
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.
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.
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.
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.
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.
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.
@jecassis see pull #169 for what should be most of these improvements
from go-algorand.
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)
- Official docker images are incompatible with windows server workers on github actions HOT 3
- Build: Flaky Ledger Catchup StateProof Verification Test
- The `DisableAPIAuth` config option causes requests to error if any auth token is present HOT 2
- As a beginner, how should I build my own chain? HOT 3
- The security vulnerability bounty page is "Not Found"
- Missing LedgerStateDelta from OAS spec (and therefore documentation and other SDKs apart from Go) HOT 1
- Measure consensus Nakamoto coefficient HOT 5
- goal should make extra information provided in some API requests available HOT 1
- Documentation and Config Generation: non-archival relays should retain last 20K or more blocks
- There are 11 pages of GitHub issues, some as old as 2019. Let's clean this up? HOT 1
- simulate fails with empty signature on a rekeyed account HOT 15
- Catchpoint is very slow HOT 3
- Add option to store and retrieve deltas HOT 2
- Node's ready status is incorrect while the node is starting HOT 1
- Buggy test?
- increase max lsig program size HOT 6
- Add access to incentive related consensus parameters HOT 3
- 3.24.0 - make - version of quic-go not supporting Go 1.21 HOT 1
- Algod docker image configuration support for ColdDataDir HOT 1
- request body too large HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-algorand.