Skip to content

Instantly share code, notes, and snippets.

Avatar

Xiujiao Gao xiujiao

View GitHub Profile
View CF Rules.md

#BOSH

  • Inbound to tcp/25555 From internal
  • Inbound to tcp/25250 From bosh-agent (blobstore)
  • Inbound to tcp/25777 from bosh-agent (registry)
  • Inbound to tcp/6868 From jumpbox, concourse (allow jumpboxes + concourse to bosh create-env + talk to the agent on directors
  • Inbound to tcp/4222 From bosh-agent

#BOSH-Agent

  • Inbound to tcp/6868 From BOSH
  • Inbound to tcp/22 From internal
View Develop Pipeline Debugging Notes
Comman errors we run into on our develop pipelibe
## Service broker url is taken
The error messgae is like this:
```Server error, status code: 400, error code: 270003, message: The service broker url is taken: url```
**Solutions**
The servive broker registered in the last run is not cleaned up. We do not have ensure broker deregistrar task in our pipleline.
View keybase.md

Keybase proof

I hereby claim:

  • I am xiujiao on github.
  • I am xj (https://keybase.io/xj) on keybase.
  • I have a public key whose fingerprint is 7ACB A60D 948A F001 6A20 96BD C8EB 68D7 F150 ACF4

To claim this, I am signing this object:

View monit
check process api_ui
with pidfile /var/vcap/sys/run/api_ui/pid
start program "/var/vcap/jobs/api_ui/bin/ctl start"
stop program "/var/vcap/jobs/api_ui/bin/ctl stop"
group vcap
View api_ui.erb
#!/bin/bash
RUN_DIR=/var/vcap/sys/run/api_ui
LOG_DIR=/var/vcap/sys/log/api_ui
PIDFILE=${RUN_DIR}/pid
case $1 in
start)
mkdir -p $RUN_DIR $LOG_DIR