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
Systemd autoinit proxysql service #425
Comments
Hi Endika. |
Hello Rene. |
Hello René code: [Service] [Install] |
Install systemd script into next path: /etc/systemd/system/proxysql.service Enable autoload service at start system with: systemctl enable proxysql Start or stop proxysql service with next intruction: systemctl start proxysql or systemctl stop proxysql |
Hi, I working on centos7 and I have the same problem. [root@proxysql2 ~]# chkconfig --add proxysql The problem is the LSB stanza, see below. (also see man page chkconfig) not working:
# Provides : proxysql
# Required-Start : $local_fs
# Required-Stop : $local_fs
# Default-Start : 2 3 4 5
# Default-Stop : 0 1 6
# Short-Description : High Performance Advanced Proxy for MySQL
# Description : High Performance and Advanced Proxy for MySQL and forks.
# It provides advanced features like connection pool, query routing and rewrite,
# firewalling, throttling, real time analysis, error-free failover
working:
### BEGIN INIT INFO
# Provides: proxysql
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: High Performance Advanced Proxy for MySQL
# Description: High Performance and Advanced Proxy for MySQL and forks.
# It provides advanced features like connection pool, query routing and rewrite,
# firewalling, throttling, real time analysis, error-free failover
### END INIT INFO |
Hi, |
Hi, I created a pull request (#471) Kr |
Merged also into v1.1.1 @vermeire-mathias : I haven't try the systemd script yet |
A proper SystemD unit file would be nice. I don't think a unit file which just calls the rc scripts is the proper way.. |
With MySQL the mysqld_safe was removed to allow systemd to handle things properly. Also the 'angel' process is no longer needed with systemd. Looks like proxysql does a similar thing:
|
@dveeden : any suggestion on SystemD unit file? I don't have experience with it. With regards to the angel process, I do not plan to remove the functionality, for not SystemD systems or for other standalone systems (Docker?). Thanks |
My take on
I've put this in
There is no angel process. There is just one Because of the The 'initial' option of the System V init script is not present in this systemd setup. The RPM should place the unit file in |
Related Issue: sysown#425
Pull request merged: thanks! |
Hello, using ProxySQL package from Percona repo (latest version still 1.3.9 😪 ) with Debian Jessie has the problem, that the good mentioned systemd file is not correct setup which ends in not started service after server/instance reboot... . 😟
|
Found my above systemd file in https://github.com/percona/proxysql-packaging/blob/master/debian/proxysql.service implemented. Sadly there is no issue tracker in this repo so here a ping to @EvgeniyPatlan for this problem. 😄 |
Hi @Reiner030. |
There is no good support of systemd by proxysql, we are creating one based on the suggestions at sysown/proxysql#425 Opting to try a non-init.d wrapper. If it doesn't work, we should fallback to it. Other changes include creating a dedicated proxysql user and group and modifying puppet accordingly. This would reduce security issues. Bug: T175672 Change-Id: I7734c7f8bdba0d86d74df751c9e2b25b17eca5e8
I see that the systemd unit file above is not in the CentOS 7 package. Can it be added please?
Then a user can create an override file in /etc/systemd/system/proxysql.service.d/ with the desired settings, eg
|
Any comment on this request @renecannao ? Or should I open a separate ticket? |
Hello @EvgeniyPatlan, thanks...
One "big" problem I just found out:
It would be great if this can be more automated. (And while testing Debian Stretch setups: package percona-monitoring-plugins is not available in Stretch repository.) |
Hello i am Endika from spain and i like your software proxysql but, I did not find autoload configuration by proxysql.cnf config file to the initialize the service.
I would like to auto initialize service in systemd because not support this.
Your proxy's software is very interesting and if you need help to correct errors or you help to new implementations I help you.
The text was updated successfully, but these errors were encountered: