-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation Addition for Creating a service #43
Comments
@MaxDiOrio , thanks for these instructions! I prettified your message and linked it from the README.md. Feel free updating this info as needed. |
Quick question: if we deploy it in aks/eks is it possible to store data in something like s3 or adls? |
Currently the data may be stored in network block storage such as Amazon EBS or Google compute disks. There are plans for adding blob storage support such as S3 or GCS in the future - see this issue for details. |
If anyone is interested, I can add build system scripts to create .rpm packages (did this recently for my project, went from "know nothing about RPM" to "know enough to be dangerous"). This would cover CentOS / Fedora, at least those versions that use systemd. |
This sounds good. Please, coordinate your work with @patsevanton regarding his yum build for VictoriaMetrics. |
@patsevanton I'm thinking of adding new code to the makefiles / build scripts. It would dynamically generate the .spec file with the right paths (which do vary by version and by actual built path) and then use Here is some code from my own build scripts:
|
@kmansoft Can you create PR to https://github.com/patsevanton/victoriametrics-rpm |
@patsevanton Hmmmm... I was thinking adding it to the existing build script(s) which build .deb packages, and therefore need to fork it off the complete Victoria repository. |
Also @patsevanton can we drop support for non-systemd systems? |
RHEL 7 (has systemd) came out in 2014 For Debian, it's systemd only so that's "wheezy" and newer (I think), 2016 release date. |
Is there some particular reason why the Also, maybe it's not a great idea to run the service as root, if it's not really necessary. |
If by "main" you mean the one for Debian - no reason, just oversight on my part.
Agreed. Maybe already fixed in the RPM packages, but not for DEB. The install script will need to |
A common pattern used by the various Prometheus packages on Debian, which require the ability to override command line settings, is to source variables from an external config file. For example:
The |
There is also an Ansible Role on GitHub which installs a single VictoriaMetrics instance as a service which I came across today along with this issue. It is at https://github.com/dreamteam-gg/ansible-victoriametrics-role in case it's useful to anyone else who lands here. |
There is also https://github.com/VictoriaMetrics/ansible-playbooks |
I think there's a confusing bit of formatting in the initial post here. This should be between two code blocks, not inside a code block, right?
Actually, I'm not sure that part is necessary at all -- I tried just putting
in the |
@mactyr Yes, you are correct about the comments / instructions that have erroneously been included in the code block (which should be two separate blocks). Systemd allows you to override portions of a unit by placing snippets in Since 32000 is already a pretty generous FD limit, I doubt there will be that many people who would need to override it with higher limits, so those params could probably just reside in the main service unit. |
Hi all! PS: we added publishing build for freebsd and openbsd, see https://docs.victoriametrics.com/CHANGELOG.html#v1790 |
Closing this issue as done. |
have you seen a similar setup for vmagent? I wasn't able to find it in the docs... |
First - VM is amazing so far. Thank you.
I'd love to see you add documentation on running VM as a service in systemd. Here's what I did to make it work on CentOS 7, but this should work on any systemd OS.
Create a directory to hold the PID file:
Create
/etc/systemd/system/victoriametrics.service
. Copy and paste the below into this new file, adjusting theExecStart
line as needed.Enable the service to start automatically:
Start the service:
The text was updated successfully, but these errors were encountered: