Bug 217679 - databases/py-carbon: This port does not support relaying!
Summary: databases/py-carbon: This port does not support relaying!
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-10 08:02 UTC by O. Hartmann
Modified: 2017-04-18 15:57 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (swills)


Attachments
Adding RELAY service (3.69 KB, application/x-shellscript)
2017-03-10 12:25 UTC, O. Hartmann
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2017-03-10 08:02:56 UTC
Setting up a larger, clustered environment, Graphite/Carbon provides relaying of metrics/data. Relaying is a important feature of Graphite/Carbon.

This port only supports a local cache, driven by carbon-cache.py. Any attempt to start a relaying instance with the provided port and documentation ended up in a local cache.

The rc script doesn't respect the difference between cache only and relaying and there is no note on this restriction which makes the Graphite/Carbon project a toy or even worse, unusable for needs where carbon needs to be clustered (which is in our case).
Comment 1 O. Hartmann 2017-03-10 12:25:25 UTC
Created attachment 180694 [details]
Adding RELAY service

As Attachment, you'll find an altered rc-srcipt residing in files/carbon.in.

It provides an additionla knob and several small changes, to provide carbon cache or, mutual exclusively, the carbon relay. As I understand CARBON, it can run as a cache XOR a relay - and that is the way I handle the patch for now. I was the easiest way to get a relay working.

I think it would be possible to provide both by doubling the environment variables in a suitable way, but as far as I know, other maintainer split a port then into two.
Comment 2 commit-hook freebsd_committer 2017-04-18 15:56:34 UTC
A commit references this bug:

Author: swills
Date: Tue Apr 18 15:56:03 UTC 2017
New revision: 438786
URL: https://svnweb.freebsd.org/changeset/ports/438786

Log:
  databases/py-carbon: add support for relaying to rc script

  PR:                  217679
  Submitted by:        O. Hartmann <ohartmann@walstatt.org>

Changes:
  head/databases/py-carbon/Makefile
  head/databases/py-carbon/files/carbon.in
Comment 3 Steve Wills freebsd_committer 2017-04-18 15:57:16 UTC
Committed, thanks!