Commit Graph

2360 Commits

Author SHA1 Message Date
Daniel Nichter
c46a0e3199 Fix init_config_file() when config file doesn't exist yet. 2013-04-08 15:16:53 -06:00
Daniel Nichter
3d20ff5f54 Update docs re installing. 2013-04-08 13:33:58 -06:00
Daniel Nichter
6b91c5b06e Fix/finish re-daemonizing. Make parent print a line about the running daemon before exiting (so user knows that pt-agent is running and "where"). Try to connect to MySQL once at first, but TODO: re-try to connect to MySQL later until successful. 2013-04-06 10:48:59 -06:00
Daniel Nichter
1610cbae96 Tweak Daemon.pm: re-enable output autoflush, add parent_exit callback arg, make _check_pid_file() check if the current and existing PID are the same. 2013-04-06 10:44:20 -06:00
Daniel Nichter
62a30edcea Make it so pt-agent can "re-daemonize" without restarting, i.e. change it's --log and --pid on the fly. 2013-04-05 20:03:43 -06:00
Daniel Nichter
2ac102da0b Large refactoring of pt-agent to make the initial start up experience more reliable, i.e. just run and wait till a good config makes everything else work. 2013-04-05 18:12:33 -06:00
Daniel Nichter
3d5325ae03 Rewrite Daemon.pm: don't require an OptionParser, one public func, run(), that does the whole daemonize process or just check the PID file. 2013-04-05 12:16:16 -06:00
Daniel Nichter
afa6533f43 Fix and test resource_diff(). 2013-03-27 11:12:38 -06:00
Daniel Nichter
13e9b5d7c7 Fix typo checking spool data file size. 2013-03-26 14:41:16 -06:00
Daniel Nichter
b17f45d3cd Fix spool file. Actually write run and send PID files. 2013-03-26 14:36:58 -06:00
Daniel Nichter
58ea0f1886 Fix 'Modification of a read-only value attempted at /home/ptagent/pt-agent/bin/pt-agent line 5691'. 2013-03-26 14:26:40 -06:00
Daniel Nichter
b9a82c21b9 Always init lib dir when applying first config. 2013-03-26 14:20:45 -06:00
Daniel Nichter
ba2b26a9c7 Init spool dir when confnig is applied. Use lib/logs and lib/pids for run and send logs and pids. Spool data to tmp dir first then mv to spool. 2013-03-26 14:10:01 -06:00
Daniel Nichter
6b89da736b Fix minor typo. 2013-03-26 10:29:05 -06:00
Daniel Nichter
ba7d55910b Check silently for first config every 60s. Check --lib dir earlier, but this is a TODO still. Replace __LIB__ and __SERVICE__ in tasks. 2013-03-26 10:20:13 -06:00
Daniel Nichter
cbc67774b3 Log --run-service and --send-data. Spool to separate files with .TS suffixes. Use /tmp until --lib is valid. Daemonize early. Replace __TS_MICRO__ in task options. 2013-03-26 09:08:37 -06:00
Daniel Nichter
6e1e70477e Fix 'Undefined subroutine &pt_agent::get'. 2013-03-26 08:15:04 -06:00
Daniel Nichter
10a3dbdcf1 Fix get_api_client() so it doesn't loop out of controll if PWS doesn't return valid entry links. 2013-03-25 15:58:46 -06:00
Daniel Nichter
bf1cee02cf Re-enable tmpdir auto cleanup. 2013-03-25 14:54:17 -06:00
Daniel Nichter
bdc3487919 Add and test start_services() for Service.run_once_on_start. 2013-03-25 14:27:53 -06:00
Daniel Nichter
2eff2692fe Fix detecting new lib dir. Fix removing service files. 2013-03-22 17:07:02 -06:00
Daniel Nichter
9e1d935e19 Add Service.run_once_on_start. Refactor get config and get services blocks. 2013-03-22 12:08:45 -06:00
Daniel Nichter
c1cce0c6ca Get and send real program version when the agent starts. 2013-03-21 13:50:49 -06:00
Daniel Nichter
f04d0e575a Write pt-agent docs. 2013-03-21 11:49:29 -06:00
Daniel Nichter
0e9e897791 Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data. 2013-03-21 07:52:21 -06:00
Daniel Nichter
cf0342c69e Implement and test running queries for tasks. 2013-03-19 18:17:24 -06:00
Daniel Nichter
846daa6c31 Fix/update/test sending data. Rename query-monitor to query-server in tests. 2013-03-19 16:35:37 -06:00
Daniel Nichter
5a65305a47 Update pt-agent to run tasks not runs. 2013-03-19 15:37:55 -06:00
Daniel Nichter
9afa462cc2 Fix/update t/pt-agent/run_agent.t. 2013-03-19 14:56:53 -06:00
Daniel Nichter
70c28272a7 Fix/update t/pt-agent/init_agent.t. 2013-03-19 14:44:02 -06:00
Daniel Nichter
2291a3c6c6 Update Lmo in pt-agent. Start fixing pt-agent tests. 2013-03-19 12:10:22 -06:00
Daniel Nichter
c61f822d23 Fix typo in lib/Lmo/Utils.pm header. 2013-03-19 11:58:26 -06:00
Daniel Nichter
f353600076 Merge release-2.2.1 to get Lmo with headers. 2013-03-19 11:56:17 -06:00
Daniel Nichter
675dffa567 Add headers to Lmo/*.pm so update-modules can handle them. 2013-03-19 11:50:21 -06:00
Daniel Nichter
9286765076 Merge 2.2.1 to get pqd without --output json. 2013-03-19 11:36:21 -06:00
Daniel Nichter
d28faa9b25 Don't require Task program or output attrib values. 2013-03-19 11:31:22 -06:00
Brian Fraser
e9b036e74a Updated the release notes & debian changelog 2013-03-15 17:08:30 -03:00
Brian Fraser
af08347cb5 Updated the Changelog to mention pt-hb --check-read-only 2013-03-15 17:02:41 -03:00
Brian Fraser
0ff20e042c Merged lp:~percona-toolkit-dev/percona-toolkit/fatpack-pod2rst 2013-03-15 15:14:23 -03:00
Brian Fraser
f591534a1b Merged lp:~percona-toolkit-dev/percona-toolkit/pt-heartbeat-read_only-28934 2013-03-15 15:10:24 -03:00
Brian Fraser
139af0ae75 Removed the dependency on File::Slurp from write-user-docs 2013-03-15 12:42:59 -03:00
Brian Fraser
d25ebe7f19 Added a shebang line to pod2rst-fixed.packed 2013-03-15 12:23:52 -03:00
Brian Fraser
797bf6e00b Merged & fixed pod2rst-updated 2013-03-15 12:07:19 -03:00
Brian Fraser
99d37e0882 FatPacked pod2rst-fixed 2013-03-14 16:58:26 -03:00
Brian Fraser
edd8fadf64 Removed an unneeded dependency on HTML::Entities from pod2rst-fixed 2013-03-14 16:45:30 -03:00
Daniel Nichter
84ab975438 Fix query time diff formatting in pt-upgrade. 2013-03-14 09:20:54 -06:00
Daniel Nichter
e27660f6a6 Merge test-pt-upgrade-2.2-duplicate-col-bug-942377. 2013-03-13 16:57:21 -06:00
Daniel Nichter
927a3b2ed1 Test bug 942377. 2013-03-13 16:54:53 -06:00
Brian Fraser
d3612481c2 Merged remove-ptqa 2013-03-13 16:55:22 -03:00
Brian Fraser
ea90c02b72 Fixed assorted test failures 2013-03-13 16:49:44 -03:00