This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| LIST_INDICES=$(curl -s http://localhost:9200/_cat/indices/logstash-\* | awk '$2=="open"{print $3}' | sort) | |
| echo "Current opening indices: " | |
| for index in $LIST_INDICES | |
| do | |
| echo -e "\t$index" | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import stan "github.com/nats-io/stan.go" | |
| import "github.com/nats-io/nats.go" | |
| import "fmt" | |
| func main() { | |
| nc, err := nats.Connect("tls://localhost:4443", nats.ClientCert("/client-cert.pem", "/client-key.pem"), nats.RootCAs("/client-cert.pem")) | |
| if err != nil { | |
| fmt.Printf("Error connect to nats %v", err) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| job "envoy" { | |
| datacenters = ["dc1"] | |
| type = "service" | |
| group "envoy" { | |
| constraint { | |
| attribute = "${node.unique.name}" | |
| value = "node-1" | |
| } | |
| count = 1 |
OlderNewer