mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
Had to jump through some hoops to kill the remote cluster reliably. Not all ssh server implementations respect signals, so in order to kill the cluster, we request a pty for the ssh session. This allows us to send the byte 0x03 which is effectively the same has hitting Ctrl-c in an interactive ssh session. With a pty, just closing the session also seems to kill the remote process.
11 lines
185 B
Go
11 lines
185 B
Go
// creator contains code for standing up pilosa clusters
|
|
package creator
|
|
|
|
import "io"
|
|
|
|
type Cluster interface {
|
|
Start() error
|
|
Hosts() []string
|
|
Shutdown() error
|
|
Logs() []io.Reader
|
|
}
|