-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address character limits for README.md
- Loading branch information
1 parent
a970776
commit b240422
Showing
2 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
# Start the LIGO/Virgo/KAGRA (LVK) consumer VM | ||
|
||
See `broker/setup_broker/lvk/README.md` for setup instructions. | ||
|
||
|
||
To start the `lvk-consumer` VM and begin ingesting a LVK topic: | ||
To start the consumer VM: | ||
|
||
```bash | ||
survey="lvk" | ||
testid="mytest" | ||
instancename="${survey}-consumer-${testid}" | ||
consumerVM="${survey}-consumer-${testid}" | ||
zone="us-central1-a" | ||
|
||
# Set the VM metadata | ||
KAFKA_TOPIC="enter Kafka topic" | ||
# must be within the last 7 days and contain at least 1 alert | ||
PS_TOPIC="lvk-alerts-${testid}" | ||
PS_TOPIC="${survey}-alerts-${testid}" | ||
gcloud compute instances add-metadata ${consumerVM} --zone=${zone} \ | ||
--metadata KAFKA_TOPIC=${KAFKA_TOPIC},PS_TOPIC=${PS_TOPIC} | ||
|
||
# Start the VM | ||
gcloud compute instances start ${consumerVM} --zone ${zone} | ||
# this launches the startup script which configures and starts the | ||
# Kafka -> Pub/Sub connector | ||
``` | ||
|
||
To stop stop the consumer VM: | ||
```bash | ||
survey="lvk" | ||
testid="mytest" | ||
consumerVM="${survey}-consumer-${testid}" | ||
zone="us-central1-a" | ||
|
||
# Stop the VM | ||
gcloud compute instances stop ${consumerVM} --zone ${zone} | ||
``` |
This file contains 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