-
Notifications
You must be signed in to change notification settings - Fork 1
/
make_sync_gateway_accel.yml
76 lines (63 loc) · 1.99 KB
/
make_sync_gateway_accel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
- hosts: sync-gateway-accel
tasks:
- name: Update apt-get
apt: update_cache=true
sudo: yes
- name: Adding user {{ user }}
user: name=sg_accel
groups=sudo
append=yes
sudo: yes
- name: Creates Download directory /home/sg_accel/downloads
file:
path: /home/sg_accel/downloads
state: directory
owner: sg_accel
group: sg_accel
mode: 0775
recurse: yes
sudo: yes
- name: Increase File Descriptor max to 500,000
lineinfile:
path: /etc/sysctl.conf
line: 'fs.file-max = 500000'
sudo: yes
- name: tcp keep alive to 5 minutes
lineinfile:
path: /etc/sysctl.conf
line: 'net.ipv4.tcp_keepalive_time = 600'
sudo: yes
- name: tcp keep alive intervals to 10
lineinfile:
path: /etc/sysctl.conf
line: 'net.ipv4.tcp_keepalive_intvl = 10'
sudo: yes
- name: tcp keep alive probes to 9
lineinfile:
path: /etc/sysctl.conf
line: 'net.ipv4.tcp_keepalive_probes = 9'
sudo: yes
- name: presist /etc/sysctl.conf
raw: (sysctl -p)
sudo: yes
- name: Increase File Descriptors (soft) to 500000
lineinfile:
path: /etc/security/limits.conf
line: '* soft nofile 250000'
sudo: yes
- name: Increase File Descriptors (hard) to 500000
lineinfile:
path: /etc/security/limits.conf
line: '* hard nofile 250000'
sudo: yes
- name: Download SG 1.4.1 for Ubuntu in downloads dir
raw: (wget https://packages.couchbase.com/releases/couchbase-sync-gateway/1.4.1/couchbase-sg-accel-enterprise_1.4.1-3_x86_64.deb -P /home/sg_accel/downloads)
sudo: yes
# - name: download Couchbase package
# get_url: url=https://packages.couchbase.com/releases/4.6.2/couchbase-server-enterprise_4.6.2-ubuntu14.04_amd64.deb dest=~/downloads
- name: Installing SG 1.4.1 binary
raw: (dpkg -i /home/sg_accel/downloads/couchbase-sg-accel-enterprise_1.4.1-3_x86_64.deb)
register: out
sudo: yes
- debug: var=out.stdout_lines