[MXS-205] Reload service or restart service Created: 2015-06-16  Updated: 2016-12-14  Resolved: 2016-12-14

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Dipti Joshi (Inactive) Assignee: markus makela
Resolution: Won't Do Votes: 0
Labels: None


 Description   

(1) If MaxScale.cnf is different from in memory configuration and reload config is used, only update the service that are impacted by the change between in memory configuration and MaxScale.cnf and only stop and restart the impacted service

(2) If (1) is not possible, there should be a reload service <service-name> that only impacts that service

  • Read MaxScale.cnf
  • Apply Service section of the named service -apply config of server, listener, router and filter used by service
  • stop client and server connections of the named service
  • restart service i.e server, listener, protocol client, router, filter

In example below: reloading myService would, reload [Hint], [server1] and [server2], [myListener] and [myService]. If there were any active connection for myService - they will be dropped. After reloading - the service will start accepting new connections per new configuration

[myService]
type=service
router=readwritesplit
servers=server1,server2
user=maxuser
passwd=maxpwd
max_slave_connections=100%
filters=Hint
 
[Hint]
type=filter
module=hintfilter
 
[server1]
type=server
address=127.0.0.1
port=3000
protocol=MySQLBackend
 
[server2]
type=server
address=127.0.0.1
port=3001
protocol=MySQLBackend
 
[myListener]
type=listener
service=myService
protocol=MySQLClient
port=4009
 



 Comments   
Comment by Dipti Joshi (Inactive) [ 2015-09-08 ]

markus makela johan.wikman - Has "reload service" maxadmin command added in any branch ?

Comment by markus makela [ 2015-09-08 ]

It is on the MXS-70 branch

Comment by Dipti Joshi (Inactive) [ 2015-09-08 ]

johan.wikman Can you confirm if "reload service" only impacts connection of the service being reloaded or all connection of maxscale

Generated at Thu Feb 08 03:57:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.