Skip to contentSkip to conversation

tabled: add the status display

PATCH Jeff Garzik 2 participants 3 messages Jan 20, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Pete Zaitcev

I find it too tiresome to monitor the status with kill -USR1. This is more fun. The patch seems not too ugly regarding the factoring of the cli_xxx methods.

Quoted 9 lines
---
  doc/etc.tabled.conf |    3
  server/Makefile.am  |    4
  server/config.c     |   19 +++
  server/replica.c    |   64 +++++++++++-
  server/server.c     |  104 +++++++++++++-------
  server/status.c     |  218 ++++++++++++++++++++++++++++++++++++++++++
  server/tabled.h     |   12 +-
  7 files changed, 379 insertions(+), 45 deletions(-)

applied... but we need some way to either turn this off, or limit to a list of incoming IP addresses. This is an admin interface, which should not be automatically available to all end-user applications.

Jeff

#2 lore raw
Quoted 17 lines · On Wed, 20 Jan 2010 14:51:59 -0500 Jeff Garzik <[email protected]> wrote:
Quoted 6 lines · Pete Zaitcev

I find it too tiresome to monitor the status with kill -USR1. This is more fun. The patch seems not too ugly regarding the factoring of the cli_xxx methods.

Quoted 9 lines
---
  doc/etc.tabled.conf |    3
  server/Makefile.am  |    4
  server/config.c     |   19 +++
  server/replica.c    |   64 +++++++++++-
  server/server.c     |  104 +++++++++++++-------
  server/status.c     |  218 ++++++++++++++++++++++++++++++++++++++++++
  server/tabled.h     |   12 +-
  7 files changed, 379 insertions(+), 45 deletions(-)
Quoted 3 lines

applied... but we need some way to either turn this off, or limit to a list of incoming IP addresses. This is an admin interface, which should not be automatically available to all end-user applications.

I thought it was obvious that StatusPort defaults to off (zero).

	if (tabled_srv.status_port)
		net_open_known(tabled_srv.status_port, true);

-- Pete

#3 lore raw
Quoted 20 lines · Pete Zaitcev
Quoted 17 lines · On Wed, 20 Jan 2010 14:51:59 -0500 Jeff Garzik<[email protected]> wrote:
Quoted 15 lines · Pete Zaitcev

I find it too tiresome to monitor the status with kill -USR1. This is more fun. The patch seems not too ugly regarding the factoring of the cli_xxx methods.

---
   doc/etc.tabled.conf |    3
   server/Makefile.am  |    4
   server/config.c     |   19 +++
   server/replica.c    |   64 +++++++++++-
   server/server.c     |  104 +++++++++++++-------
   server/status.c     |  218 ++++++++++++++++++++++++++++++++++++++++++
   server/tabled.h     |   12 +-
   7 files changed, 379 insertions(+), 45 deletions(-)
Quoted 8 lines
Quoted 3 lines

applied... but we need some way to either turn this off, or limit to a list of incoming IP addresses. This is an admin interface, which should not be automatically available to all end-user applications.

I thought it was obvious that StatusPort defaults to off (zero).

	if (tabled_srv.status_port)
		net_open_known(tabled_srv.status_port, true);

I missed that detail. That works.

Though eventually I hope someone will create a patch for filtering incoming connections via IP address. Not an issue that needs attention pre-1.0 unless a volunteer appears, though.

Jeff