Commit Graph

1105 Commits

Author SHA1 Message Date
Daniel Nichter
82af5eaef1 Create lib/Percona/Agent/Logger.pm for asynchronous agent status logging via the API. 2013-05-15 18:31:08 -07:00
Daniel Nichter
84c8906de4 Create lib/Safeguards.pm to implement new --disk-bytes-free and --disk-pct-free in pt-agent. 2013-05-15 13:27:44 -07:00
Daniel Nichter
983af3b158 Always save response object in PWS client before returning or dying. 2013-05-10 12:15:34 -07:00
Daniel Nichter
cb9cc2794f Add Agent.actions. Make pqd warn if resume file does not exist. Print which services have been added, removed, and updated. 2013-05-10 10:12:40 -07:00
Daniel Nichter
e8eca8dde1 Merge lp:~percona-toolkit-dev/percona-toolkit/pqd-enhanced-resume-file r582. 2013-05-07 20:19:37 -07:00
Brian Fraser
871e217f3b Build percona-toolkit-2.2.2 2013-04-19 20:26:48 -03:00
Daniel Nichter
89db22894e Test get_services(). Need to fix/update other tests. 2013-04-19 14:49:01 -06:00
Daniel Nichter
7cee5a480e Add ts to Service resource. Rewrite how pt-agent handles applying services: use new meta attrib to find real service, then look for start-service and stop-service; schedule anything with a run_schedule or spool_schedule. Remove Percona/WebAPI/Util. 2013-04-18 16:47:15 -06:00
Brian Fraser
c167e590d4 Merged fix-1156901-skip-retry-check-for-repl-threads 2013-04-16 17:49:25 -03:00
Brian Fraser
ae8487311c Merged fix-1160918-restore-show-all 2013-04-16 17:48:05 -03:00
Brian Fraser
ecbe7311b3 Merged fix-1160338-pqd-tcp-errors 2013-04-16 17:41:38 -03:00
Brian Fraser
121c28c4cd Merged pxc-autodiscover-nodes 2013-04-16 17:40:32 -03:00
Brian Fraser
bd37cb252f Fixes per Daniel's review 2013-04-16 13:01:30 -03:00
Brian Fraser
ce3e868fa6 Fix for 1160338: pt-query-digest 2.2 prints unwanted debug info on tcpdump parsing errors 2013-04-16 12:20:34 -03:00
Brian Fraser
c80c5c38a8 Processlist.pm: Skip checking for a restarted query if looking at a replication thread 2013-04-16 11:37:32 -03:00
Brian Fraser
1d3518f1ed Fixed version 2013-04-12 16:32:05 -03:00
Brian Fraser
7d5da6e6f5 Rebased the branch to trunk 2013-04-12 12:58:10 -03:00
Brian Fraser
712375d491 Rebased the branch & fixes per Danie's review 2013-04-12 12:31:41 -03:00
Daniel Nichter
d63bc8c9d1 Make Agent.username and .hostname optional so they can be loaded from a minimal agent file and updated at runtime. 2013-04-10 17:03:27 -06:00
Daniel Nichter
230d8e0394 Fix Agent.username default. 2013-04-10 16:57:43 -06:00
Daniel Nichter
7bfc694be4 Change Agent.user to Agent.username and make it and hostname rw. 2013-04-10 16:57:06 -06:00
Daniel Nichter
aecdca7420 Add Agent.user attribute. 2013-04-10 15:52:18 -06:00
Daniel Nichter
79c8705f02 Update default entry link. Handle catch/exit on signal better, faster. 2013-04-09 17:32:43 -06:00
Brian Fraser
db0a29561c Fixes per Daniel's review 2013-04-09 10:21:15 -03:00
Daniel Nichter
a9e06286af Handle run-once services. Stub implementation of --stop. 2013-04-08 16:17:08 -06:00
Brian Fraser
1dcc6904f3 pqd: Restore the --show-all option 2013-04-08 09:53:52 -03: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
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
4422049dea Merge hostname-bug-947893-2.2. 2013-04-04 15:45:50 -06:00
Daniel Nichter
24758caa4c Use /*!50038 @@hostname*/ in Cxn.pm. 2013-04-04 15:31:21 -06:00
Brian Fraser
e2612a08aa Fix for 1099845: pt-table-checksum pxc same_node function incorrectly uses wsrep_sst_receive_address 2013-04-02 05:37:38 -03:00
Daniel Nichter
afa6533f43 Fix and test resource_diff(). 2013-03-27 11:12:38 -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
0e9e897791 Use 'Content-Type: multipart/form-data; boundary=Ym91bmRhcnk' to send multi-part data. 2013-03-21 07:52:21 -06:00
Daniel Nichter
24cabaa46a Hot-fix --version-check. 2013-03-20 11:53:36 -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
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
Daniel Nichter
84ab975438 Fix query time diff formatting in pt-upgrade. 2013-03-14 09:20:54 -06:00
Brian Fraser
d3612481c2 Merged remove-ptqa 2013-03-13 16:55:22 -03:00
Daniel Nichter
5ddfb95ca7 Fix lib/Cxn.pm that didn't merge correctly. Fix t/lib/OptionParser.t test failure. Update Cxn, OptionParser, and DSNParser in all tools. 2013-03-13 12:38:45 -06:00
Brian Fraser
55bb01bb6e Removed pt-query-advisor 2013-03-13 11:50:08 -03:00