be3bdc7bc9 
					 
					
						
						
							
							MXS-1775 Rename MariaDBMonitor::main_loop() to main()  
						
						... 
						
						
						
						To make it compatible with mxs::MonitorInstance. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a82c5911e5 
					 
					
						
						
							
							MXS-1775 Rename m_monitor_base to m_monitor  
						
						... 
						
						
						
						To make it compatible with how the variable is named
in maxscale::MonitorInstance. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f862939dd7 
					 
					
						
						
							
							MXS-1775 Make MariaDBMon non-dependent on stop() return value  
						
						... 
						
						
						
						To align it with the behavour or MonitorInstance::stop() 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						62f3e89ae7 
					 
					
						
						
							
							MXS-1775 Tilt MariaDbMon towards maxscale::MonitorInstance  
						
						... 
						
						
						
						- m_status -> m_state
- m_keep_running -> m_shutdown
- load_config_params() -> configure() 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ebcb807438 
					 
					
						
						
							
							MXS-1775 Add default implementations  
						
						
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						9b7e37e112 
					 
					
						
						
							
							MXS-1775 Change MonitorInstance::configure() prototype  
						
						... 
						
						
						
						Now return boolean, to allow derived class to signal a failure
to configure. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0783af88ed 
					 
					
						
						
							
							MXS-1775 Make general cleanup  
						
						... 
						
						
						
						Document and rearrrange so that things look nice and tidy. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						76cfe7291d 
					 
					
						
						
							
							MXS-1775 Move module entry point to the end of the file  
						
						... 
						
						
						
						Now the same way in all monitors. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						b439857a84 
					 
					
						
						
							
							MXS-1775 Remove destroy()  
						
						... 
						
						
						
						Now the instance is deleted simply by deleting it. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0833db8a48 
					 
					
						
						
							
							MXS-1775 Flush pending status to servers using common code  
						
						
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						15b1c270a3 
					 
					
						
						
							
							MXS-1775 Check connection in MonitorInstance::tick()  
						
						... 
						
						
						
						Since the connection checking is done in an identical fashion in
all monitors, it can be moved to the base-class. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						a8205824f8 
					 
					
						
						
							
							MXS-1775 Update statuses the usual way in MMMon  
						
						... 
						
						
						
						As all other monitors MMMon now only manipulates the pending_status
of the monitor object during analysis and only in the end touches
the server status. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4a5ed6ce7f 
					 
					
						
						
							
							MXS-1775 Fix GaleraMonitor to update pending_status  
						
						
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c0ace6a694 
					 
					
						
						
							
							MXS-1775 Rename server_clear_set_status  
						
						... 
						
						
						
						Renamed to server_clear_set_status_nolock, like all other non-locking
functions are called. Rename arguments to be self-explanatory. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f50ebfce2a 
					 
					
						
						
							
							MXS-1775 Set/clear initial bits similarly in all monitors  
						
						
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8fed6752bd 
					 
					
						
						
							
							MXS-1775 Fix NDPCMonitor to update pending_status  
						
						... 
						
						
						
						Instead of continuously updating the status of the server object,
the monitor should update the pending_status of the monitor object
and then only at the end update the status of the server object. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ced063b1a0 
					 
					
						
						
							
							MXS-1775 Fix GRMon to update pending_status  
						
						... 
						
						
						
						Instead of continuously updating the status of the server object,
the monitor should update the pending_status of the monitor object
and then only at the end update the status of the server object. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4b01656bef 
					 
					
						
						
							
							MXS-1775 Fix AuroraMonitor to update pending_status  
						
						... 
						
						
						
						Instead of continuously updating the status of the server object,
the monitor should update the pending_status of the monitor object
and then only at the end update the status of the server object. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8d1b8a1774 
					 
					
						
						
							
							MXS-1775 Handle connection error the same way  
						
						... 
						
						
						
						All monitors (but for MariaDBMon) now handle connection errors in
the same manner.
An exception is MMMon that modifies both the server status and the
monitor status. However, in fact, all other monitors do it the wrong
way and update the server status directly instead of only the monitor
status that then at the end of the loop should be copied to the server
status. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5196371762 
					 
					
						
						
							
							MXS-1775 Use same arrangement in update_server_status  
						
						... 
						
						
						
						All monitors (but possible for MariaDBMon) now handle the
connecting to the server in the same way, that is, if the
connecting fails, then the status is updated and we return. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						df4e19eb27 
					 
					
						
						
							
							MXS-1775 Provide default implementation for MonitorInstance::tick  
						
						
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						68505a0bcb 
					 
					
						
						
							
							MXS-1775 Consistently name the argument to update_server_status()  
						
						
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cb1da5538c 
					 
					
						
						
							
							MXS-1775 Monitoring function named consistently  
						
						... 
						
						
						
						The main monitoring function now has the same name in all
monitors (except MariaDBMonitor) and is a member function. 
						
						
					 
					
						2018-06-01 13:48:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c039821467 
					 
					
						
						
							
							MXS-1883 Maintenance is now the only user-modifiable bit for a monitored server  
						
						... 
						
						
						
						The request to turn maintenance off/on is a separate flag, although the actual
status is still contained in the status bitfield. 
						
						
					 
					
						2018-05-30 10:09:15 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5f167abafd 
					 
					
						
						
							
							Add missing priority usage information to galeramon  
						
						... 
						
						
						
						The monitor did not print the current value of this parameter and knowing
it is helpful. 
						
						
					 
					
						2018-05-28 10:34:06 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f8940d4a2a 
					 
					
						
						
							
							Use 64bits for server status flags  
						
						... 
						
						
						
						Monitor journal still uses 32bits. 
						
						
					 
					
						2018-05-23 16:19:08 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3ec449339f 
					 
					
						
						
							
							Only write to SERVER->status at the end of a monitoring loop  
						
						... 
						
						
						
						This makes the code clearer and reduces race conditions, as the monitor
could be writing SERVER->status while a router is reading it. Also,
the time during which the SERVER struct is locked drops to a fraction. 
						
						
					 
					
						2018-05-23 16:19:08 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						043232990c 
					 
					
						
						
							
							MXS-1859 Correct merge bug  
						
						... 
						
						
						
						Version comparison was wrong. 
						
						
					 
					
						2018-05-21 15:58:12 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4788c4947d 
					 
					
						
						
							
							Merge branch 'read_only' into develop  
						
						... 
						
						
						
						develop was updated before a merge was pushed, requiring a second merge. 
						
						
					 
					
						2018-05-18 16:51:38 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						709c076000 
					 
					
						
						
							
							Merge branch '2.2' into develop  
						
						
						
						
					 
					
						2018-05-18 16:31:49 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f3973b331f 
					 
					
						
						
							
							Fix rebase error.  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						650a739c92 
					 
					
						
						
							
							MXS-1775 Move monitor loop to MonitorInstance  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						db30ea96f2 
					 
					
						
						
							
							MXS-1775 m_master is now a member variable of MonitorInstance  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5aa30e8613 
					 
					
						
						
							
							MXS-1775 AurorMon now hangs up as the other monitors do  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6eef6f52db 
					 
					
						
						
							
							MXS-1775 Wait the same way in all monitors  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2396b555f8 
					 
					
						
						
							
							MXS-1775 Monitor loop and monitoring separated  
						
						... 
						
						
						
						In preparation for moving the monitor loop to MonitorInstance. 
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6fff5a4f23 
					 
					
						
						
							
							MXS-1775 Preparatory work for moving main loop to MonitorInstance  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6db4ce54a9 
					 
					
						
						
							
							MXS-1775 MonitorInstance now calls mysql_thread_[init|finish]()  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						15e3a2887c 
					 
					
						
						
							
							MXS-1775 Move status management to MonitorInstance  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1e084b78b1 
					 
					
						
						
							
							MXS-1775 MonitorInstance::m_script is now a std::string  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c7eb0a9958 
					 
					
						
						
							
							MXS-1775 Thread starting is now handled by MonitorInstance  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						adb7f156d6 
					 
					
						
						
							
							MXS-1775 Introduce MonitorInstance::has_sufficient_permissions()  
						
						... 
						
						
						
						With this function in place, it is now possible to move the thread
starting to MonitorInstance. 
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3606a5ed1c 
					 
					
						
						
							
							MXS-1775 Introduce MonitorInstance::configure() function  
						
						... 
						
						
						
						The configuring of the monitor instance is now performed in a
separate function. That is in preparation for the moving of the
start function to maxscale::MonitorInstance. 
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						bcb7d09a15 
					 
					
						
						
							
							MXS-1775 Monitor stopping moved to maxscale::MonitorInstance  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1304fd6147 
					 
					
						
						
							
							MXS-1775 Move thread main function to maxscale::MonitorInstance  
						
						
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						3c277f4e5e 
					 
					
						
						
							
							MXS-1775 Introduce maxscale::MonitorInstance  
						
						... 
						
						
						
						- All monitors (but MariaDBMon for the time being) inherit
  from that.
- All common member variables moved to that class. Still
  manipulated in derived classes.
In subsequent commits common functionality will be moved to
that class. 
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						787a0b50ef 
					 
					
						
						
							
							MXS-1775 Cleanup monitor class headers  
						
						... 
						
						
						
						- All classes now declared in separate header file
- Header files have .hh-suffix 
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						90f1784d21 
					 
					
						
						
							
							MXS-1775 Turn NDBC monitor into a class.  
						
						... 
						
						
						
						A mechanical change, without any functional modifications. 
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						4b236a79db 
					 
					
						
						
							
							MXS-1775 Turn Galera monitor into a class.  
						
						... 
						
						
						
						A mechanical change, without any functional modifications. 
						
						
					 
					
						2018-05-18 16:00:05 +03:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cd233fe594 
					 
					
						
						
							
							MXS-1775 Turn MM monitor into a class  
						
						... 
						
						
						
						A mechanical change, without any functional modifications. 
						
						
					 
					
						2018-05-18 16:00:05 +03:00