Daniel Nichter
|
c99cb3ba58
|
Add copy_paste attrib to each query's hash in the JSON output with SHOW TABLE STATUS, SHOW CREATE TABLE, and non-SELECT converted to SELECT for EXPLAIN. Fix typo: EA type is 'string' not 'str'. Add host, port, and ip type hints to pqd.
|
2013-05-20 16:44:44 -07:00 |
|
Daniel Nichter
|
41a4634edb
|
Update JSONReportFormatter: report all str attribs; don't print "# No events processed" since that's not valid JSON; rename output.t to json.t.
|
2013-05-20 14:47:01 -07:00 |
|
Daniel Nichter
|
2f368be7d3
|
Stop online logging via flag first, then print, then stop the thread which takes a few seconds.
|
2013-05-20 14:07:03 -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
|
5e2133e978
|
For --install, set new MySQL user and pass in /etc/percona/agent/my.cnf.
|
2013-05-19 11:51:37 -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
|
883590d448
|
Fix type in --log-level POD.
|
2013-05-16 16:25:57 -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
|
297416bc75
|
Always print line about when servies will restart after disk space check.
|
2013-05-15 15:19:17 -07:00 |
|
Daniel Nichter
|
ef99c02cfc
|
Don't keep stopping services when the disk space threshold checks fail.
|
2013-05-15 15:15:46 -07:00 |
|
Daniel Nichter
|
934e0b1f65
|
Pass a Safeguards to run_agent() and check_disk_space() with each check-in. Factor stop_all_services() from stop_agent().
|
2013-05-15 14:19:01 -07:00 |
|
Daniel Nichter
|
84c8906de4
|
Create lib/Safeguards.pm to implement new --disk-bytes-free and --disk-pct-free in pt-agent.
|
2013-05-15 13:27:44 -07:00 |
|
Daniel Nichter
|
635ad149ba
|
Start implementing --reload.
|
2013-05-14 17:48:53 -07:00 |
|
Daniel Nichter
|
85f2cf4392
|
Fix typo: $prev_services is a hashref.
|
2013-05-14 17:35:29 -07:00 |
|
Daniel Nichter
|
ab7307baff
|
Add notice about connecting to MySQL.
|
2013-05-14 17:28:51 -07:00 |
|
Daniel Nichter
|
3c70839c3a
|
Pass pid_file to reset_agent() so it can pass it to stop_agent().
|
2013-05-14 17:21:27 -07:00 |
|
Daniel Nichter
|
c6c963f3ee
|
Fix typo and add confirmation prompt of STDIN is a tty.
|
2013-05-14 17:17:28 -07:00 |
|
Daniel Nichter
|
8a2dee28c9
|
Implement --reset/reset_agent().
|
2013-05-14 17:07:21 -07:00 |
|
Daniel Nichter
|
a1aae7a5c9
|
Clean up daemonize message.
|
2013-05-13 17:10:39 -07:00 |
|
Daniel Nichter
|
f4df337c20
|
Fix ps command for real.
|
2013-05-13 17:06:25 -07:00 |
|
Daniel Nichter
|
7516f458c7
|
Fix ps command.
|
2013-05-13 17:04:06 -07:00 |
|
Daniel Nichter
|
98a909fdb2
|
Detect orphaned services.
|
2013-05-13 17:01:34 -07:00 |
|
Daniel Nichter
|
67fbad1a7f
|
Make not-running status ok.
|
2013-05-13 16:55:39 -07:00 |
|
Daniel Nichter
|
71042beeef
|
Fix typo.
|
2013-05-13 16:51:46 -07:00 |
|
Daniel Nichter
|
ab3cd36393
|
Fix typo: it's decode_json() not json_decode().
|
2013-05-13 16:48:39 -07:00 |
|
Daniel Nichter
|
64e24385cf
|
Fix --reset POD.
|
2013-05-13 16:46:54 -07:00 |
|
Daniel Nichter
|
8732a2191d
|
Factor get_agent_pid() from stop_agent(). Implement Percona::Agent::Exception classes. Implement --status/agent_status().
|
2013-05-13 16:44:07 -07:00 |
|
Daniel Nichter
|
4feb40f432
|
Add stubs for --status and --reset.
|
2013-05-13 13:23:58 -07:00 |
|
Daniel Nichter
|
3770a41531
|
Fix typo.
|
2013-05-10 12:36:17 -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
|
d001c6c492
|
Report simpler client-side failures to send data. Add ts to metadata to making finding failures in server logs easier.
|
2013-05-10 12:09:16 -07:00 |
|
Daniel Nichter
|
bf094713ad
|
Use .data for data file in stage so it's auto-removed if zero size.
|
2013-05-10 11:22:52 -07:00 |
|
Daniel Nichter
|
f632824bc1
|
Reschedule services if one is removed. Report when no services have changed.
|
2013-05-10 11:03:27 -07:00 |
|
Daniel Nichter
|
05d7496e14
|
Only re-schedule services when they change.
|
2013-05-10 10:47:36 -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 |
|
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 |
|