couchbase_cluster.app 2.22 KB
Newer Older
1
application : "COUCHBASE"
2 3 4 5 6 7 8 9 10 11 12
user : "someUser"
components :
 -
  name : "SEED"
  incomingPorts :
   -
    name : "WEB_ADMIN"
    number : 8091
   -
    name : "PORT_MAPPER"
    number : 4369
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
   -
    name : "CAPI_PORT"
    number : 8092
   -
    name : "QUERY_PORT"
    number : 8093
   -
    name : "FTS_PORT"
    number : 8093
   -
    name : "INDEXER_ADMIN_PORT"
    number : 9100
   -
    name : "INDEXER_HTTP_PORT"
    number : 9102
   -
    name : "MEMCACHED_DEDICATED_PORT"
    number : 11209
   -
    name : "MEMCACHED_PORT"
    number : 11210
34 35
  lifecycleActions :
   init : ""
36
   download : "
37 38 39 40 41
   wget -O install.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/install.sh'
   && wget -O init.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/init.sh'
   && wget -O seed.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/seed.sh'
   && wget -O telegraf.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/telegraf.sh'
   && wget -O telegraf.conf '#SERVICE_ENDPOINT#/scripts/database/couchbase/telegraf.conf' "
42
   install : "sudo -E chmod +x install.sh && sudo -E ./install.sh"
43 44
   configure : " source /etc/environment && sudo -E chmod +x init.sh && sudo -E chmod +x seed.sh  && sudo -E ./init.sh"
   start : "source /etc/environment  && sudo -E ./seed.sh && sudo -E chmod +x telegraf.sh && sudo -E ./telegraf.sh"
45 46 47 48 49 50 51 52 53 54 55 56
   stop : ""
 -
  name : "DATA"
  outgoingPorts :
   -
    name : "WEB_ADMIN_CONNECTION"
    componentName : "SEED"
    portName : "WEB_ADMIN"
    mandatory : true
    script : ""
  lifecycleActions :
   init : ""
57
   download : "
58 59 60 61 62
   wget -O install.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/install.sh'
   && wget -O init.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/init.sh'
   && wget -O data.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/data.sh'
   && wget -O telegraf.sh '#SERVICE_ENDPOINT#/scripts/database/couchbase/telegraf.sh'
   && wget -O telegraf.conf '#SERVICE_ENDPOINT#/scripts/database/couchbase/telegraf.conf' "
63
   install : "sudo -E chmod +x install.sh && sudo -E ./install.sh"
64
   configure : " source /etc/environment && sudo -E chmod +x init.sh && sudo -E chmod +x data.sh  && sudo -E ./init.sh"
65
   start : "source /etc/environment && sudo -E chmod +x telegraf.sh && sudo -E ./telegraf.sh && sudo -E ./data.sh "
66
   stop : ""