Daniel Nichter
|
fc420ea88e
|
Remove code to handle metadata; instead, let tasks handle metadata and simply concat and send any service.meta.* files/values. Prefix run files with a ts to allow for concurrent runs of the same service.
|
2013-05-01 20:19:42 -07:00 |
|
Daniel Nichter
|
89db22894e
|
Test get_services(). Need to fix/update other tests.
|
2013-04-19 14:49:01 -06:00 |
|
Daniel Nichter
|
c7c79945f9
|
Change start_services() to run_services() and make it do triple duty: start, restart, and stop. When a real service is removed, call its stop- meta-service before write_services(). Add run_services_once() for services with the run_once flag.
|
2013-04-18 18:41:05 -06:00 |
|
Daniel Nichter
|
03f8720871
|
Fix/update init_agent.t and replace_special_vars.t.
|
2013-04-13 11:55:53 -06:00 |
|
Daniel Nichter
|
a32a583e05
|
Fix and test error on startup if config file is missing. Refactor run_agent(): move Agent setup stuff into start_agent(). Move related subs next to each other.
|
2013-04-13 11:27:45 -06:00 |
|
Daniel Nichter
|
2d89fe6163
|
Update/fix run_agent.t. Set action and link in run_agent() when given test agent. Fix apply_config(): don't die if config file doesn't exist. Expect Config.lib to be set. Fix run_service(): run run_once services without meta or syncing time interval.
|
2013-04-13 10:24:52 -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
|
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
|
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
|
5e362d9e4b
|
Fix write_services.t samples. Make send_data.t deterministic.
|
2013-01-31 17:14:32 -07:00 |
|
Daniel Nichter
|
3f4a02e1fb
|
Update pt-agent to implement new specs.
|
2013-01-31 17:00:38 -07:00 |
|
Daniel Nichter
|
a8da9c268a
|
Fix t/pt-agent/schedule_services.t.
|
2013-01-30 16:55:42 -07:00 |
|
Daniel Nichter
|
07da85bb75
|
Clarify a code comment.
|
2013-01-30 16:46:36 -07:00 |
|
Daniel Nichter
|
f7813c9495
|
Fix t/pt-agent/make_new_crontab.t.
|
2013-01-30 16:44:22 -07:00 |
|
Daniel Nichter
|
7331a7f857
|
Fix t/pt-agent/send_data.t.
|
2013-01-30 16:28:41 -07:00 |
|
Daniel Nichter
|
9cc3c81143
|
Fix init_agent.t.
|
2013-01-30 15:52:26 -07:00 |
|
Daniel Nichter
|
bf92ce765d
|
Update/fix pt-agent to work with new Service.run_schedule and Service.spool_schedule attribs.
|
2013-01-30 13:25:21 -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
|
d68301f293
|
Implement and test pt-agent --run-service.
|
2013-01-08 13:19:55 -07:00 |
|
Daniel Nichter
|
f28aa90436
|
Finish writing and testing service scheduling code.
|
2013-01-08 10:55:58 -07:00 |
|
Daniel Nichter
|
d7f49dee8a
|
Start writing and testing schedule_services().
|
2013-01-07 17:52:37 -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 |
|