tejeswarp / tungsten-replicator

Automatically exported from code.google.com/p/tungsten-replicator
0 stars 0 forks source link

Extend trepctl to include simple_services and super_trepctl features #516

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. To which tool/application/daemon will this feature apply?

Replicator management.

2. Describe the feature in general

The output of trepctl is developer oriented, not user oriented. The information 
is given in a way that is hard to use for beginners. (Include simple_services 
and super_trepctl in regular distro).

6. Notes

Reported by Giuseppe.

Original issue reported on code.google.com by linas.vi...@continuent.com on 22 Mar 2013 at 8:54

GoogleCodeExporter commented 9 years ago
Rather than including new tools, it would be better if trepctl could provide 
the same functionality. Probably fixed when Issue#499 is completed 

Original comment by g.maxia on 22 Mar 2013 at 10:01

GoogleCodeExporter commented 9 years ago
We'll use 2.1.0 instead of 2.0.8, hence moving the issues.

Original comment by linas.vi...@continuent.com on 27 Mar 2013 at 3:14

GoogleCodeExporter commented 9 years ago
Moving out to 2.1.1.

Original comment by linas.vi...@continuent.com on 6 Jun 2013 at 11:42

GoogleCodeExporter commented 9 years ago
Moving to 2.1.2, but increasing priority.

Original comment by linas.vi...@continuent.com on 19 Jun 2013 at 4:06

GoogleCodeExporter commented 9 years ago
simple_services is a filter that displays services in a condensed way.
trepctl services | simple_services
alpha  [slave]  seqno:         10  - latency:   0.742 - ONLINE

bravo  [slave]  seqno:          5  - latency:   0.390 - ONLINE

delta  [master] seqno:          0  - latency:   1.059 - ONLINE

trepctl services | simple_services --action=list
alpha,bravo,delta

trepctl services | simple_services --action=list --role=slave
alpha,bravo

trepctl services | simple_services --action=name --role=slave
alpha
bravo

super-trepctl is a wrapper to trepctl that offers additional features.

Its default output is like simple_services
super-trepctl
alpha  [slave]  seqno:         10  - latency:   0.742 - ONLINE

bravo  [slave]  seqno:          5  - latency:   0.390 - ONLINE

delta  [master] seqno:          0  - latency:   1.059 - ONLINE

it supports several actions: 

super-trepctl --action masterof
master of alpha: host1
master of bravo: host2
master of delta: localhost

super-trepctl --action offline --role=slave

super-trepctl
alpha  [slave]  seqno:         -1  - latency:  -1.000 - OFFLINE:NORMAL

bravo  [slave]  seqno:         -1  - latency:  -1.000 - OFFLINE:NORMAL

delta  [master] seqno:          2  - latency:   0.724 - ONLINE

super-trepctl --host=host1 --action=heartbeat 
(finds the master service in host1 and issues a heartbeat)

Original comment by g.maxia on 19 Jun 2013 at 5:56

GoogleCodeExporter commented 9 years ago
How does super-trepctl "masterof" work? Does it do calls across different hosts?

Original comment by linas.vi...@continuent.com on 19 Jun 2013 at 6:20

GoogleCodeExporter commented 9 years ago
masterof (which was written more than one year ago) uses two calls to trepctl. 
The first call goes to 'services' and gets the name and role. The for each 
service it calls 'trepctl status' and gets the master from masterConnectUri.

With the recent feature 'services --full --json', the same result can be 
achieved with a single call.

Original comment by g.maxia on 19 Jun 2013 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by linas.vi...@continuent.com on 26 Aug 2013 at 1:54

GoogleCodeExporter commented 9 years ago
There won't be a 2.1.3.

Original comment by linas.vi...@continuent.com on 17 Sep 2013 at 10:13

GoogleCodeExporter commented 9 years ago

Original comment by linas.vi...@continuent.com on 18 Dec 2013 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by linas.vi...@continuent.com on 2 May 2014 at 9:12

GoogleCodeExporter commented 9 years ago
Will not use third version digit for normal releases anymore. It will only be 
increment for maintenance ones.

Original comment by linas.vi...@continuent.com on 26 May 2014 at 5:01

GoogleCodeExporter commented 9 years ago

Original comment by linas.vi...@continuent.com on 19 Jan 2015 at 2:18