Commit Graph

130 Commits

Author SHA1 Message Date
Daniel Nichter
8eff03c294 Add pid to LogEntry. Use online logging for --send-data. 2013-06-09 17:15:16 -07:00
Daniel Nichter
34bc178cd8 Rewrite Logger using pipes because Perl threads cause a small memory leak. 2013-06-09 15:53:35 -07:00
Daniel Nichter
e26a8744ef Queue and log all entries online. 2013-06-09 11:54:10 -07:00
Daniel Nichter
bcb3758f64 Make Percona/Agent/Logger always log online. 2013-06-09 10:31:56 -07:00
Daniel Nichter
2dbe188d5b Add service, data_ts, and entry_ts to LogEntry resource. Add corresponding attribs to Logger, as well as queue_wait. 2013-05-28 20:00:59 -07:00
Daniel Nichter
99592409e6 Add Logger::stop_online_logging(). 2013-05-20 14:03:39 -07:00
Daniel Nichter
20c3bd6c29 Destroy Logger object. Add LogEntry module/resource. 2013-05-20 13:49:51 -07:00
Daniel Nichter
52e37e2dc2 Fix stopping logger thread for real. 2013-05-19 12:46:47 -07:00
Daniel Nichter
52d9a91b4d Fix stopping the logging thread on Ctrl-C, I think. 2013-05-19 12:09:51 -07:00
Daniel Nichter
e8fc50dad1 Enable online logging manually in Logger::enable_online_logging() instead of BUILD() because threads don't share data. 2013-05-17 09:59:20 -07:00
Daniel Nichter
fe50f5d916 Fix type: _message_queue, not message_queue. 2013-05-17 09:47:36 -07:00
Daniel Nichter
ea481471c0 Always build message queue, don't dequeue until it exists though. 2013-05-17 09:45:09 -07:00
Daniel Nichter
e2aab02bee Add sleep time between log queue sends. 2013-05-17 09:36:36 -07:00
Daniel Nichter
df6ba9f3a5 First implementation of online logging. 2013-05-17 09:32:32 -07:00
Daniel Nichter
a0ba15c27e Implement Percona::Agent::Logger without logging via API yet. 2013-05-16 16:22:36 -07:00
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
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
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
121c28c4cd Merged pxc-autodiscover-nodes 2013-04-16 17:40: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
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
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
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
4cbd8c2295 Update Percona::Toolkit::VERSION in all tools. 2013-03-14 10:27:23 -07:00
Daniel Nichter
de7b8ca0e5 Merge 2.1.9, including its s/Percona Inc/Percona Ireland Ltd/ changes. 2013-03-14 10:58:03 -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
fc851caec8 Simplify checking for .bzr/ to auto-disable --version-check in dev and test envs. Update t/pt-archiver/version_check.t. Need to update all other tools... 2013-02-21 15:59:49 -07:00
Brian Fraser
4534981913 VersionCheck: Skip running if called from our bzr repo 2013-02-21 04:41:57 -03: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
50a82a4ef8 Merge 2.1.8 and 2.2. 2013-02-05 10:22:31 -07:00
Brian Fraser fraserb@gmail.com
809164becd Change the Report modules to use Lmo 2013-02-01 14:06:13 -03:00
Daniel Nichter
3b64102f17 Normalize newlines on end of JSON text, to handle whatever is wrong with JSON on CentOS 6. 2013-01-31 17:48:25 -07:00