Daniel Nichter
|
fe21bb32ba
|
Fix typo, tweak install messages again.
|
2013-05-09 14:00:05 -07:00 |
|
Daniel Nichter
|
c7b897c4bf
|
Fix messages install messages.
|
2013-05-09 13:54:03 -07:00 |
|
Daniel Nichter
|
3d9764c0a9
|
Fix typo.
|
2013-05-09 13:46:38 -07:00 |
|
Daniel Nichter
|
fc486d7da0
|
Start pt-agent --daemonize at end of --install.
|
2013-05-09 13:42:44 -07:00 |
|
Daniel Nichter
|
5faa104378
|
Don't disconnect dbh in start_agent().
|
2013-05-08 20:55:10 -07:00 |
|
Daniel Nichter
|
16e016e027
|
Don't disconnect dbh in get_versions().
|
2013-05-08 20:48:45 -07:00 |
|
Daniel Nichter
|
f09ef8b91f
|
Remove --install method.
|
2013-05-08 20:40:34 -07:00 |
|
Daniel Nichter
|
7408b2646b
|
More implementation for --install.
|
2013-05-08 20:30:03 -07:00 |
|
Daniel Nichter
|
d4013adf53
|
Remove only stage files.
|
2013-05-08 16:00:25 -07:00 |
|
Daniel Nichter
|
28b602bf43
|
Remove all stage files.
|
2013-05-08 15:41:34 -07:00 |
|
Daniel Nichter
|
fce958eb68
|
s/Run/Task/ for consistency. Remove extra dot.
|
2013-05-08 15:31:20 -07:00 |
|
Daniel Nichter
|
9e9025dac8
|
Use glob instead of opendir and readdir.
|
2013-05-08 15:28:29 -07:00 |
|
Daniel Nichter
|
72616620b4
|
Fix --stop to look for stop-<service> instead of disable-<service>.
|
2013-05-08 14:11:15 -07:00 |
|
Daniel Nichter
|
c78574d5d5
|
Change task output type tmp to stage. Allow 2+ digit __RUN_<number>_OUTPUT__.
|
2013-05-08 12:25:49 -07:00 |
|
Daniel Nichter
|
bf2322703a
|
Start implementing --install.
|
2013-05-07 22:47:11 -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 |
|
Daniel Nichter
|
a5f04f27e4
|
Do not use PID files for --run-service so one service can run concurrently.
|
2013-05-07 20:17:18 -07:00 |
|
Daniel Nichter
|
881d2ebaa9
|
Update pt-agent docs.
|
2013-05-06 19:58:38 -07:00 |
|
Daniel Nichter
|
4bfb634c15
|
Hack pt-query-digest to write events to a file each time it runs.
|
2013-05-04 14:38:37 -07:00 |
|
Daniel Nichter
|
fb70205a15
|
Use UTC for log ts.
|
2013-05-04 12:49:09 -07:00 |
|
Daniel Nichter
|
12636c0b65
|
Remove staged meta files after joining them.
|
2013-05-03 16:33:54 -07:00 |
|
Daniel Nichter
|
efed54c424
|
Replace __TS__ special var.
|
2013-05-03 16:26:11 -07:00 |
|
Daniel Nichter
|
a62b2c193b
|
Don't rm meta files after running a service. Save unchanged services in sort_services() and re-schedule them.
|
2013-05-03 16:12:52 -07:00 |
|
Daniel Nichter
|
1b547b9822
|
Only schedule services that start ok.
|
2013-05-02 14:56:35 -07:00 |
|
Daniel Nichter
|
ffd97f1d71
|
Save meta output.
|
2013-05-01 21:48:39 -07:00 |
|
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
|
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 |
|
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
|
80b79c962b
|
Start changing how pt-agent handles metadata.
|
2013-04-12 18:05:47 -06:00 |
|
Daniel Nichter
|
9be4a1d08e
|
Fix saving interval meta file. Fix error when tmp data file doesn't exist.
|
2013-04-11 10:34:54 -06:00 |
|
Daniel Nichter
|
e37e30dd01
|
Don't init the config file: this was really just overwriting it which caused problems for a manually set config when pt-agent couldn't get a config from PWS.
|
2013-04-10 17:44:10 -06:00 |
|
Daniel Nichter
|
cb3952291a
|
Make --stop check for files.
|
2013-04-10 17:29:33 -06:00 |
|
Daniel Nichter
|
b37b544922
|
Remove trailing . from URL to make copy-paste easy.
|
2013-04-10 17:25:55 -06:00 |
|
Daniel Nichter
|
96c681d07c
|
Improve the parent daemon message.
|
2013-04-10 17:23:27 -06: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
|
1f5e5ede61
|
Update Agent in pt-agent.
|
2013-04-10 16:59:37 -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
|
9fbfa89c87
|
Thread-safe mkdir. Don't init spool dirs for services that don't spool.
|
2013-04-10 16:46:15 -06:00 |
|
Daniel Nichter
|
9958be5419
|
Round down ts seconds to :00.
|
2013-04-10 16:08:22 -06:00 |
|
Daniel Nichter
|
aecdca7420
|
Add Agent.user attribute.
|
2013-04-10 15:52:18 -06:00 |
|
Daniel Nichter
|
19287b6526
|
Go back to not spooling empty sample files.
|
2013-04-09 18:49:27 -06:00 |
|
Daniel Nichter
|
62987419ae
|
Remove some info messages from stop_agent().
|
2013-04-09 18:33:00 -06:00 |
|
Daniel Nichter
|
efdfa0fdef
|
Fix disabling services in stop_agent().
|
2013-04-09 18:29:17 -06:00 |
|
Daniel Nichter
|
c246bf12f3
|
Use TERM instead of QUIT signal so pt-agent can trap it.
|
2013-04-09 18:20:44 -06:00 |
|
Daniel Nichter
|
279b8f2188
|
Implement --stop.
|
2013-04-09 18:15:12 -06:00 |
|