Daniel Nichter
|
5cc1663520
|
Fix --send-data causing 'Use of uninitialized value $exit_status'.
|
2013-04-08 17:16:16 -06:00 |
|
Daniel Nichter
|
9e15315c6a
|
Put env vars in correct place in crontab lines.
|
2013-04-08 17:01:13 -06:00 |
|
Daniel Nichter
|
36e417363d
|
Add certain env vars to crontab commands. Run one start-once service at a time and warn if any one fails. Temp hack to stop running turn-off services.
|
2013-04-08 16:56:26 -06:00 |
|
Daniel Nichter
|
a9e06286af
|
Handle run-once services. Stub implementation of --stop.
|
2013-04-08 16:17:08 -06:00 |
|
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
|
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
|
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
|
2291a3c6c6
|
Update Lmo in pt-agent. Start fixing pt-agent tests.
|
2013-03-19 12:10:22 -06:00 |
|
Daniel Nichter
|
d28faa9b25
|
Don't require Task program or output attrib values.
|
2013-03-19 11:31:22 -06:00 |
|
Daniel Nichter
|
5e5943bd36
|
Change Run to Task. Add Percona/WebAPI/Exception/Resource.pm.
|
2013-03-01 09:47:49 -07:00 |
|
Daniel Nichter
|
0be24a3b8d
|
Misc work-in-progress updates to pt-agent, Agent and Config resources. Config will change again. Make Client::put() return Location header like POST.
|
2013-02-13 13:45:52 -07:00 |
|
Daniel Nichter
|
f99b1dee70
|
Update Percona::WebAPI::Representation in pt-agent so the previous commit actually works.
|
2013-01-31 17:50:57 -07: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
|
24e505a43d
|
Simplify and test Percona::WebAPI::Client.pm according to new web API specs.
|
2013-01-31 12:58:09 -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
|
f999686610
|
Fix Lmo::Types in pt-agent. Change Run->queries to query, Maybe[Str].
|
2013-01-17 18:21:02 -07:00 |
|
Daniel Nichter
|
4c48ed16a5
|
Remove --spool-interval. This is done per-service now.
|
2013-01-14 16:43:22 -07:00 |
|
Daniel Nichter
|
19ffb443b2
|
Add 3 TODO.
|
2013-01-14 15:07:34 -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 |
|