Skip to content

Commit 729a407

Browse files
committed
Apply ulimit change to other KV versions
1 parent 810dca0 commit 729a407

File tree

9 files changed

+109
-108
lines changed

9 files changed

+109
-108
lines changed

content/riak/kv/2.0.0/using/performance/open-files-limit.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Most operating systems can change the open-files limit using the `ulimit
5454
-n` command. Example:
5555

5656
```bash
57-
ulimit -n 65536
57+
ulimit -n 200000
5858
```
5959

6060
However, this only changes the limit for the **current shell session**.
@@ -68,7 +68,7 @@ controlled by `sysctl`.
6868

6969
```bash
7070
sysctl fs.file-max
71-
fs.file-max = 50384
71+
fs.file-max = 200000
7272
```
7373

7474
As seen above, it is generally set high enough for Riak. If you have
@@ -82,15 +82,15 @@ desired hard and soft limits:
8282

8383
```config
8484
riak soft nofile 4096
85-
riak hard nofile 65536
85+
riak hard nofile 200000
8686
```
8787

8888
On Ubuntu, if you’re always relying on the init scripts to start Riak,
8989
you can create the file `/etc/default/riak` and specify a manual limit
9090
like so:
9191

9292
```bash
93-
ulimit -n 65536
93+
ulimit -n 200000
9494
```
9595

9696
This file is automatically sourced from the init script, and the Riak
@@ -157,8 +157,8 @@ the new limits are set with the following command:
157157
1. Edit `/etc/security/limits.conf` and append the following lines to
158158
the file:
159159

160-
<div><pre><code>&ast; soft nofile 65536
161-
&ast; hard nofile 65536
160+
<div><pre><code>&ast; soft nofile 200000
161+
&ast; hard nofile 200000
162162
</code></pre></div>
163163

164164
2. Save and close the file.
@@ -184,7 +184,7 @@ increase the per-process limit on Solaris, add the following line to
184184
`/etc/system`:
185185

186186
```config
187-
set rlim_fd_max=65536
187+
set rlim_fd_max=200000
188188
```
189189

190190
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -218,8 +218,8 @@ contains the following XML configuration:
218218
<string>launchctl</string>
219219
<string>limit</string>
220220
<string>maxfiles</string>
221-
<string>65536</string>
222-
<string>65536</string>
221+
<string>200000</string>
222+
<string>200000</string>
223223
</array>
224224
<key>RunAtLoad</key>
225225
<true/>
@@ -229,7 +229,7 @@ contains the following XML configuration:
229229
</plist>
230230
```
231231

232-
This will set the open files limit to 65536. The second plist
232+
This will set the open files limit to 200000. The second plist
233233
configuration file should be stored in
234234
`/Library/LaunchDaemons/limit.maxproc.plist` with the following
235235
contents:
@@ -269,14 +269,14 @@ setting the at the session level as well by appending the following
269269
lines to your `bashrc`, `bashprofile`, or analogous file:
270270

271271
```bash
272-
ulimit -n 65536
272+
ulimit -n 200000
273273
ulimit -u 2048
274274
```
275275

276276
Like the plist files, your `bashrc` or similar file should have
277277
`-rw-r--r--` permissions. At this point, you can restart your computer
278278
and enter `ulimit -n` into your terminal. If your system is configured
279-
correctly, you should see that `maxfiles` has been set to 65536.
279+
correctly, you should see that `maxfiles` has been set to 200000.
280280

281281
### Adjusting Open File Limits in Older Versions of OS X
282282

content/riak/kv/2.0.1/using/performance/open-files-limit.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Most operating systems can change the open-files limit using the `ulimit
5454
-n` command. Example:
5555

5656
```bash
57-
ulimit -n 65536
57+
ulimit -n 200000
5858
```
5959

6060
However, this only changes the limit for the **current shell session**.
@@ -68,7 +68,7 @@ controlled by `sysctl`.
6868

6969
```bash
7070
sysctl fs.file-max
71-
fs.file-max = 50384
71+
fs.file-max = 200000
7272
```
7373

7474
As seen above, it is generally set high enough for Riak. If you have
@@ -82,15 +82,15 @@ desired hard and soft limits:
8282

8383
```config
8484
riak soft nofile 4096
85-
riak hard nofile 65536
85+
riak hard nofile 200000
8686
```
8787

8888
On Ubuntu, if you’re always relying on the init scripts to start Riak,
8989
you can create the file `/etc/default/riak` and specify a manual limit
9090
like so:
9191

9292
```bash
93-
ulimit -n 65536
93+
ulimit -n 200000
9494
```
9595

9696
This file is automatically sourced from the init script, and the Riak
@@ -157,8 +157,8 @@ the new limits are set with the following command:
157157
1. Edit `/etc/security/limits.conf` and append the following lines to
158158
the file:
159159

160-
<div><pre><code>&ast; soft nofile 65536
161-
&ast; hard nofile 65536
160+
<div><pre><code>&ast; soft nofile 200000
161+
&ast; hard nofile 200000
162162
</code></pre></div>
163163

164164
2. Save and close the file.
@@ -184,7 +184,7 @@ increase the per-process limit on Solaris, add the following line to
184184
`/etc/system`:
185185

186186
```config
187-
set rlim_fd_max=65536
187+
set rlim_fd_max=200000
188188
```
189189

190190
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -218,8 +218,8 @@ contains the following XML configuration:
218218
<string>launchctl</string>
219219
<string>limit</string>
220220
<string>maxfiles</string>
221-
<string>65536</string>
222-
<string>65536</string>
221+
<string>200000</string>
222+
<string>200000</string>
223223
</array>
224224
<key>RunAtLoad</key>
225225
<true/>
@@ -229,7 +229,7 @@ contains the following XML configuration:
229229
</plist>
230230
```
231231

232-
This will set the open files limit to 65536. The second plist
232+
This will set the open files limit to 200000. The second plist
233233
configuration file should be stored in
234234
`/Library/LaunchDaemons/limit.maxproc.plist` with the following
235235
contents:
@@ -269,14 +269,14 @@ setting the at the session level as well by appending the following
269269
lines to your `bashrc`, `bashprofile`, or analogous file:
270270

271271
```bash
272-
ulimit -n 65536
272+
ulimit -n 200000
273273
ulimit -u 2048
274274
```
275275

276276
Like the plist files, your `bashrc` or similar file should have
277277
`-rw-r--r--` permissions. At this point, you can restart your computer
278278
and enter `ulimit -n` into your terminal. If your system is configured
279-
correctly, you should see that `maxfiles` has been set to 65536.
279+
correctly, you should see that `maxfiles` has been set to 200000.
280280

281281
### Adjusting Open File Limits in Older Versions of OS X
282282

content/riak/kv/2.0.2/using/performance/open-files-limit.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ menu:
1212
toc: true
1313
aliases:
1414
- /riak/2.0.2/ops/tuning/open-files-limit/
15+
- /riak/kv/2.0.2/ops/tuning/open-files-limit/
1516
canonical_link: "https://docs.basho.com/riak/kv/latest/using/performance/open-files-limit"
1617
---
1718

@@ -53,7 +54,7 @@ Most operating systems can change the open-files limit using the `ulimit
5354
-n` command. Example:
5455

5556
```bash
56-
ulimit -n 65536
57+
ulimit -n 200000
5758
```
5859

5960
However, this only changes the limit for the **current shell session**.
@@ -67,7 +68,7 @@ controlled by `sysctl`.
6768

6869
```bash
6970
sysctl fs.file-max
70-
fs.file-max = 50384
71+
fs.file-max = 200000
7172
```
7273

7374
As seen above, it is generally set high enough for Riak. If you have
@@ -81,15 +82,15 @@ desired hard and soft limits:
8182

8283
```config
8384
riak soft nofile 4096
84-
riak hard nofile 65536
85+
riak hard nofile 200000
8586
```
8687

8788
On Ubuntu, if you’re always relying on the init scripts to start Riak,
8889
you can create the file `/etc/default/riak` and specify a manual limit
8990
like so:
9091

9192
```bash
92-
ulimit -n 65536
93+
ulimit -n 200000
9394
```
9495

9596
This file is automatically sourced from the init script, and the Riak
@@ -156,8 +157,8 @@ the new limits are set with the following command:
156157
1. Edit `/etc/security/limits.conf` and append the following lines to
157158
the file:
158159

159-
<div><pre><code>&ast; soft nofile 65536
160-
&ast; hard nofile 65536
160+
<div><pre><code>&ast; soft nofile 200000
161+
&ast; hard nofile 200000
161162
</code></pre></div>
162163

163164
2. Save and close the file.
@@ -183,7 +184,7 @@ increase the per-process limit on Solaris, add the following line to
183184
`/etc/system`:
184185

185186
```config
186-
set rlim_fd_max=65536
187+
set rlim_fd_max=200000
187188
```
188189

189190
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -217,8 +218,8 @@ contains the following XML configuration:
217218
<string>launchctl</string>
218219
<string>limit</string>
219220
<string>maxfiles</string>
220-
<string>65536</string>
221-
<string>65536</string>
221+
<string>200000</string>
222+
<string>200000</string>
222223
</array>
223224
<key>RunAtLoad</key>
224225
<true/>
@@ -228,7 +229,7 @@ contains the following XML configuration:
228229
</plist>
229230
```
230231

231-
This will set the open files limit to 65536. The second plist
232+
This will set the open files limit to 200000. The second plist
232233
configuration file should be stored in
233234
`/Library/LaunchDaemons/limit.maxproc.plist` with the following
234235
contents:
@@ -268,14 +269,14 @@ setting the at the session level as well by appending the following
268269
lines to your `bashrc`, `bashprofile`, or analogous file:
269270

270271
```bash
271-
ulimit -n 65536
272+
ulimit -n 200000
272273
ulimit -u 2048
273274
```
274275

275276
Like the plist files, your `bashrc` or similar file should have
276277
`-rw-r--r--` permissions. At this point, you can restart your computer
277278
and enter `ulimit -n` into your terminal. If your system is configured
278-
correctly, you should see that `maxfiles` has been set to 65536.
279+
correctly, you should see that `maxfiles` has been set to 200000.
279280

280281
### Adjusting Open File Limits in Older Versions of OS X
281282

content/riak/kv/2.0.4/using/performance/open-files-limit.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Most operating systems can change the open-files limit using the `ulimit
5454
-n` command. Example:
5555

5656
```bash
57-
ulimit -n 65536
57+
ulimit -n 200000
5858
```
5959

6060
However, this only changes the limit for the **current shell session**.
@@ -68,7 +68,7 @@ controlled by `sysctl`.
6868

6969
```bash
7070
sysctl fs.file-max
71-
fs.file-max = 50384
71+
fs.file-max = 200000
7272
```
7373

7474
As seen above, it is generally set high enough for Riak. If you have
@@ -82,15 +82,15 @@ desired hard and soft limits:
8282

8383
```config
8484
riak soft nofile 4096
85-
riak hard nofile 65536
85+
riak hard nofile 200000
8686
```
8787

8888
On Ubuntu, if you’re always relying on the init scripts to start Riak,
8989
you can create the file `/etc/default/riak` and specify a manual limit
9090
like so:
9191

9292
```bash
93-
ulimit -n 65536
93+
ulimit -n 200000
9494
```
9595

9696
This file is automatically sourced from the init script, and the Riak
@@ -157,8 +157,8 @@ the new limits are set with the following command:
157157
1. Edit `/etc/security/limits.conf` and append the following lines to
158158
the file:
159159

160-
<div><pre><code>&ast; soft nofile 65536
161-
&ast; hard nofile 65536
160+
<div><pre><code>&ast; soft nofile 200000
161+
&ast; hard nofile 200000
162162
</code></pre></div>
163163

164164
2. Save and close the file.
@@ -184,7 +184,7 @@ increase the per-process limit on Solaris, add the following line to
184184
`/etc/system`:
185185

186186
```config
187-
set rlim_fd_max=65536
187+
set rlim_fd_max=200000
188188
```
189189

190190
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -218,8 +218,8 @@ contains the following XML configuration:
218218
<string>launchctl</string>
219219
<string>limit</string>
220220
<string>maxfiles</string>
221-
<string>65536</string>
222-
<string>65536</string>
221+
<string>200000</string>
222+
<string>200000</string>
223223
</array>
224224
<key>RunAtLoad</key>
225225
<true/>
@@ -229,7 +229,7 @@ contains the following XML configuration:
229229
</plist>
230230
```
231231

232-
This will set the open files limit to 65536. The second plist
232+
This will set the open files limit to 200000. The second plist
233233
configuration file should be stored in
234234
`/Library/LaunchDaemons/limit.maxproc.plist` with the following
235235
contents:
@@ -269,14 +269,14 @@ setting the at the session level as well by appending the following
269269
lines to your `bashrc`, `bashprofile`, or analogous file:
270270

271271
```bash
272-
ulimit -n 65536
272+
ulimit -n 200000
273273
ulimit -u 2048
274274
```
275275

276276
Like the plist files, your `bashrc` or similar file should have
277277
`-rw-r--r--` permissions. At this point, you can restart your computer
278278
and enter `ulimit -n` into your terminal. If your system is configured
279-
correctly, you should see that `maxfiles` has been set to 65536.
279+
correctly, you should see that `maxfiles` has been set to 200000.
280280

281281
### Adjusting Open File Limits in Older Versions of OS X
282282

0 commit comments

Comments
 (0)