influxdata / influxdata/kapacitor

Add CLI support for "Load directory service" refresh

Open
#2,020 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

As per the documentation, the load directory service can be refreshed:
> when a NOHUP signal is sent to the process

Unfortunately, at least of CentOS 7, Kapacitor does not create a pid file so finding and signaling it is not straightforward from, for instance, Puppet.

A pid file could allow something like:
```
# kill -HUP `cat /var/run/kapacitor.pid`
```

Alternatively, the `kapacitor` CLI could support such an action so the following could be used:
```
# kapacitor refresh
```

Contributor guide

Open the contributing guide

Research direction

Start with the kapacitor CLI command entry point and the load directory service refresh path described in the issue. Check how the process currently handles SIGHUP and how CLI actions reach it. Done means `kapacitor refresh` triggers the same refresh behavior, with tests covering the command and refresh request.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.