couchbase-partners / google-deployment-manager-couchbase

Google Deployment Manager (DM) templates for Couchbase Enterprise
Apache License 2.0
11 stars 9 forks source link

Configure Sync Gateway #6

Closed benofben closed 7 years ago

benofben commented 7 years ago
# Maybe move this under cluster?
if 'mobileGateways' in context.properties:
    for gateways in context.properties['mobileGateways']:
        region = gateways['region']
        diskSize = gateways['diskSize']
        instanceCount = gateways['instanceCount']
        instanceType = gateways['instanceType']
        services = gateways['services']

        # make the instance group here
benofben commented 7 years ago

I restructured the yaml, so it all goes under the cluster now. Mobile seems to be installing, I just need to configure it.

benofben commented 7 years ago

I've added a placeholder script. I'm waiting to get the runtime config working before concentrating on this.

benofben commented 7 years ago

ben_lackey@ben1-cluster1-group2-instance-rt55:/home/sync_gateway$ cat sync_gateway.json { "log": ["HTTP+"], "adminInterface": "127.0.0.1:4985", "interface": "0.0.0.0:4984", "databases": { "db": { "server": "walrus:data", "users": { "GUEST": {"disabled": false, "admin_channels": ["*"] } } } } } ben_lackey@ben1-cluster1-group2-instance-rt55:/home/sync_gateway$

benofben commented 7 years ago

https://github.com/couchbase/sync_gateway/blob/master/examples/basic-couchbase-bucket.json

benofben commented 7 years ago

data and index bucket if accel enabled.

benofben commented 7 years ago

can't do accel + sync on same machine because of port conflict. need to ensure different machines

benofben commented 7 years ago

Thinking of just doing this for a basic config: https://github.com/couchbase/sync_gateway/blob/master/examples/basic-couchbase-bucket.json

benofben commented 7 years ago

Just doing sync gateway for now

benofben commented 7 years ago

config file is /home/sync_gateway/sync_gateway.json

benofben commented 7 years ago

Done.