You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Systemd is getting popular in Linux world and it would be great if rethinkdb team own config files for it and install using 'make install'.
Linux Arch has system config that works great. It mimics multi-instance database from debian init system, but you can change to single database if you want.
BTW rethinkdb has been moved to [community] Arch repository. It means it is a binary package now and much easier to install than before. The new installation instruction is sudo pacman -S rethinkdb
So what do you think about providing systemd support out of box?
Another question related to the service. Arch systemd service provides multiple instances similar to what debian service does. Would it be better to provide simpler one-instance service? I can write and test such file for you. Is multiple-rethinkdb-instances the default usage use-case?
Multiple instances are not the most common use case, but I think it should be supported.
As a package maintainer I suggest to keep systemd service simple (i.e. one-instance version) especially as it is common case. User can always make multiple-instance version of the service that is a two line change.
@anatol I agree. But considering that multiple instances are supported by the rc script and that, as you mention, it is only a two line difference, supporting it in the systemd config would help users switching from one to the other.
My two cents on this topic, just goes with the not instanciated as a default as now a day, more and more multiple instances will happen within containerized environment plus we (the users) will naturally try to dumbly launch it with a systemctl enable rethinkdb.service
Plus, this is how MariaDB and MySQL are solving this issue, they provide a sane non-templatized default service and so let the user know that it is possible to call a different unit using templatized units within the documentation.
Agree what @ArKam said. Multiple-instance deployment nowadays would typically be either in containers or in virtual machines, because those users are typically enterprises that can afford (or even already have) such infrastructure. Clusterization is complicated and no DevOps should count on a magic one-liner to get everything ready.
Activity
coffeemug commentedon Feb 25, 2014
@AtnNn -- what do you think?
neumino commentedon Feb 25, 2014
Yep, everyone is moving to systemd.
We provide the same systemd config file in our docs as the Arch package -- http://www.rethinkdb.com/docs/cluster-on-startup/
So instead of having users copy/paste the systemd file, we should put it in the repo.
Having it install with
make installseems like a good idea too.Also @anatol, congrats on becoming an Arch trusted user!
anatol commentedon Feb 25, 2014
Thank you!
BTW rethinkdb has been moved to [community] Arch repository. It means it is a binary package now and much easier to install than before. The new installation instruction is
sudo pacman -S rethinkdbcoffeemug commentedon Feb 25, 2014
@neumino -- could you add an entry in http://rethinkdb.com/docs/install/arch/ ?
neumino commentedon Feb 25, 2014
Yep, updating the Arch install page now.
AtnNn commentedon Feb 25, 2014
This is a very good idea. Moving to subsequent.
thelinuxlich commentedon Aug 1, 2014
+1
anatol commentedon Aug 27, 2014
So what do you think about providing systemd support out of box?
Another question related to the service. Arch systemd service provides multiple instances similar to what debian service does. Would it be better to provide simpler one-instance service? I can write and test such file for you. Is multiple-rethinkdb-instances the default usage use-case?
coffeemug commentedon Aug 27, 2014
Thanks @anatol. /cc @AtnNn -- what do you think we should do?
AtnNn commentedon Sep 5, 2014
I think we should do it. It should be relatively straightforward to bundle the systemd config you link to into rethinkdb.
Multiple instances are not the most common use case, but I think it should be supported.
anatol commentedon Sep 5, 2014
As a package maintainer I suggest to keep systemd service simple (i.e. one-instance version) especially as it is common case. User can always make multiple-instance version of the service that is a two line change.
AtnNn commentedon Sep 5, 2014
@anatol I agree. But considering that multiple instances are supported by the rc script and that, as you mention, it is only a two line difference, supporting it in the systemd config would help users switching from one to the other.
27 remaining items
mikemaccana commentedon Apr 9, 2016
Regarding
/usr/lib/systemd/system/[email protected]- why the trailing at symbol? or should it be@instance-name.service?anatol commentedon Apr 9, 2016
It is so called instantiated service that allow to run multiple instances of rethinkdb http://0pointer.de/blog/projects/instances.html
It might be better to use simpler non-instantiated service file as a default option. But the instantiated one added to Arch to match current init script http://www.rethinkdb.com/docs/start-on-startup/
mikemaccana commentedon Apr 15, 2016
Forgot to add: thanks @anatol !
ncraike commentedon Oct 23, 2017
How is this progressing? Is there anything I can do to help out?
ArKam commentedon Oct 24, 2017
My two cents on this topic, just goes with the not instanciated as a default as now a day, more and more multiple instances will happen within containerized environment plus we (the users) will naturally try to dumbly launch it with a systemctl enable rethinkdb.service
Plus, this is how MariaDB and MySQL are solving this issue, they provide a sane non-templatized default service and so let the user know that it is possible to call a different unit using templatized units within the documentation.
cervajs commentedon Oct 24, 2017
+1
FranklinYu commentedon Aug 24, 2018
Agree what @ArKam said. Multiple-instance deployment nowadays would typically be either in containers or in virtual machines, because those users are typically enterprises that can afford (or even already have) such infrastructure. Clusterization is complicated and no DevOps should count on a magic one-liner to get everything ready.
zedtux commentedon Feb 1, 2022
One day, maybe 😍