Commit Graph

130 Commits

Author SHA1 Message Date
Daniel Nichter
3f4a02e1fb Update pt-agent to implement new specs. 2013-01-31 17:00:38 -07:00
Daniel Nichter
24e505a43d Simplify and test Percona::WebAPI::Client.pm according to new web API specs. 2013-01-31 12:58:09 -07:00
Daniel Nichter
f999686610 Fix Lmo::Types in pt-agent. Change Run->queries to query, Maybe[Str]. 2013-01-17 18:21:02 -07:00
Daniel Nichter
8f59c9f357 Change --check-spool to --send-data, and Run->schedule to Run->run_schedule. Add Run->spool_schedule and Run->queries. Remove Service->alias. 2013-01-14 15:02:07 -07:00
Daniel Nichter
526437632c Implement and test --check-spool. Make Mock/UserAgent save put and post data in an array. Make Percona/WebAPI/Client accept ready-made text resources, for multi-part resources. 2013-01-08 18:49:42 -07:00
Daniel Nichter
0495f9aa8a Test and implement more run_agent(). Fix as_json() for lists of resources. Add alias attrib to Service for its friendly name; make name its code-friendly name. Fix ts in log messages. 2012-12-26 17:44:19 -07:00
Daniel Nichter
66fb54e793 Fix Client to expect X-Percona-Resource-Type else links. Add headers to Mock/UserAgent. Start testing run_agent(). As TO_JSON() magic to Run so encode can encode Service contain blessed Run objs. Use BUILDARGS to convert Run as hashref to real objs. 2012-12-26 13:00:46 -07:00
Daniel Nichter
87080d44b2 Fix WebAPI::Client to always expect links: in reponse. 2012-12-26 09:16:53 -07:00
Daniel Nichter
5051abc7ec Partly working and tested pt-agent. Fix Percona/WebAPI/Client.pm. Add Percona/WebAPI/Util.pm, Percona/Test.pm, and /Test/Mock/UserAgent.pm. 2012-12-25 19:40:42 -07:00
Daniel Nichter
9241c27b7c Almost working pt-agent main process. Clean up HTTP::Micro. Add Percona/WebAPI/Util, and some basic Percona/WebAPI/Representation tests. 2012-12-25 16:51:18 -07:00
Daniel Nichter
6f2d543653 Condense lib/Percona/WebAPI/Representation/* into lib/Percona/WebAPI/Representation.pm since our MO doesn't support roles. Continue building pt-agent. 2012-12-25 12:20:06 -07:00
Daniel Nichter
d035125729 Add headers to Lmo and WebAPI modules, and put the modules in pt-agent. 2012-12-24 18:20:25 -07:00
Daniel Nichter
5b12357035 Merge Pingback into VersionCheck, but not working yet. Move Percona/HTTP/Mirco to HTTP/Micro. 2012-12-24 14:36:04 -07:00
Daniel Nichter
593e64e6ec Begin to fill in pt-agent. Use new, experimental Percona::Toolkit. Remove Versions resource; add as optional attrib to Agent resource. 2012-12-24 13:17:48 -07:00
Daniel Nichter
93416d4cb6 Skeleton bin/pt-agent and lib/Percona/WebAPI. 2012-12-24 11:24:53 -07:00
Brian Fraser
0ff46fd3da Pushed the lib/Percona/Toolkit.pm version. 2012-12-21 13:11:17 -03:00
Brian Fraser fraserb@gmail.com
79a5c39cec WIP Autodetect nodes & recurse to find new slaves 2012-11-25 18:51:06 -03:00
Brian Fraser
41d7700aa5 WIP ptc: Autodetect cluster nodes & recurse to slaves 2012-11-23 19:00:38 -03:00
Brian Fraser fraserb@gmail.com
7ae20036cb PXC: Implement find_cluster_nodes and remove_duplicate_cxns 2012-11-23 12:50:25 -03:00
Daniel Nichter
92e1242d00 Update Percona::Toolkit::VERSION and Changelog. 2012-11-19 18:41:34 +00:00
Daniel Nichter
e0f0ea0cdb Rewrite and enhance lib/Percona/XtraDB/Cluster.pm and t/pt-table-checksum/pxc.t. Change how ptc handles various cluster issues. Change lib/Sandbox.pm subs like start_sandbox() and start_cluster(). PXC docs in ptc are a work in progress. 2012-11-18 22:05:30 -07:00
Daniel Nichter
e47a84daba Add _d() to Percona/XtraDB/Cluster.pm. 2012-11-17 12:28:47 -07:00
Brian Fraser
c811d60ae1 Pushed the lib/Percona/Toolkit.pm version, and added extra tests to t/lib/Percona/Toolkit.t 2012-11-13 12:10:25 -03:00
Brian Fraser
42a9cf4b6e Merged fix-1062563-1063912-ptc-pxc-bugs and resolved conflicts, added the missing Percona::XtraDB::Cluster file 2012-11-08 17:38:04 -03:00
Daniel Nichter
4a494d1a20 Remove all_privs tests. Update Percona::Toolkit::VERSION. 2012-10-20 17:59:28 -06:00
Brian Fraser
aa98b589b6 Build percona-toolkit-2.1.4 2012-09-20 10:59:16 -03:00
Daniel Nichter
98338b6508 Simplify how Pingback handles MySQL instances. Remove Percona::Toolkit::slurp_file() because it was causing 'sub redefined' errors, probably due to PerconaTest::slurp_file(). Add more PTVCDEBUG statements. 2012-08-27 17:10:42 -06:00
Brian Fraser
9f79d4b7ba v-c: Updated to identify and report every instance, and to skip instances already version-checked that day 2012-08-24 19:09:59 -03:00
Daniel Nichter
272473348c Remove _d from Percona::Toolkit because I can't get it to export correctly. Put Percona::Toolkit in most tools. 2012-08-17 12:35:12 -06:00
Daniel Nichter
4fe1a61f0e Add lib/Percona/Toolkit.pm for $Percona::Toolkit::VERSION. Put that in pt-diskstats. Add util/tool-header to update %INC magic when bin/update-modules is ran. 2012-08-17 11:27:41 -06:00