Skip to content

Commit 3c7f878

Browse files
authored
Merge pull request #2168 from basho/ej/kv/ulimit
Change ulimit increase on Open Files Limit doc
2 parents 2a42acc + a64ab97 commit 3c7f878

File tree

10 files changed

+122
-120
lines changed

10 files changed

+122
-120
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
@@ -53,7 +53,7 @@ Most operating systems can change the open-files limit using the `ulimit
5353
-n` command. Example:
5454

5555
```bash
56-
ulimit -n 65536
56+
ulimit -n 200000
5757
```
5858

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

6868
```bash
6969
sysctl fs.file-max
70-
fs.file-max = 50384
70+
fs.file-max = 200000
7171
```
7272

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

8282
```config
8383
riak soft nofile 4096
84-
riak hard nofile 65536
84+
riak hard nofile 200000
8585
```
8686

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

9191
```bash
92-
ulimit -n 65536
92+
ulimit -n 200000
9393
```
9494

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

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

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

185185
```config
186-
set rlim_fd_max=65536
186+
set rlim_fd_max=200000
187187
```
188188

189189
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -217,8 +217,8 @@ contains the following XML configuration:
217217
<string>launchctl</string>
218218
<string>limit</string>
219219
<string>maxfiles</string>
220-
<string>65536</string>
221-
<string>65536</string>
220+
<string>200000</string>
221+
<string>200000</string>
222222
</array>
223223
<key>RunAtLoad</key>
224224
<true/>
@@ -228,7 +228,7 @@ contains the following XML configuration:
228228
</plist>
229229
```
230230

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

270270
```bash
271-
ulimit -n 65536
271+
ulimit -n 200000
272272
ulimit -u 2048
273273
```
274274

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

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

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
@@ -53,7 +53,7 @@ Most operating systems can change the open-files limit using the `ulimit
5353
-n` command. Example:
5454

5555
```bash
56-
ulimit -n 65536
56+
ulimit -n 200000
5757
```
5858

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

6868
```bash
6969
sysctl fs.file-max
70-
fs.file-max = 50384
70+
fs.file-max = 200000
7171
```
7272

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

8282
```config
8383
riak soft nofile 4096
84-
riak hard nofile 65536
84+
riak hard nofile 200000
8585
```
8686

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

9191
```bash
92-
ulimit -n 65536
92+
ulimit -n 200000
9393
```
9494

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

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

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

185185
```config
186-
set rlim_fd_max=65536
186+
set rlim_fd_max=200000
187187
```
188188

189189
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -217,8 +217,8 @@ contains the following XML configuration:
217217
<string>launchctl</string>
218218
<string>limit</string>
219219
<string>maxfiles</string>
220-
<string>65536</string>
221-
<string>65536</string>
220+
<string>200000</string>
221+
<string>200000</string>
222222
</array>
223223
<key>RunAtLoad</key>
224224
<true/>
@@ -228,7 +228,7 @@ contains the following XML configuration:
228228
</plist>
229229
```
230230

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

270270
```bash
271-
ulimit -n 65536
271+
ulimit -n 200000
272272
ulimit -u 2048
273273
```
274274

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

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

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ 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/
16+
canonical_link: "https://docs.basho.com/riak/kv/latest/using/performance/open-files-limit"
1517
---
1618

1719
[plan backend bitcask]: /riak/kv/2.0.2/setup/planning/backend/bitcask
@@ -52,7 +54,7 @@ Most operating systems can change the open-files limit using the `ulimit
5254
-n` command. Example:
5355

5456
```bash
55-
ulimit -n 65536
57+
ulimit -n 200000
5658
```
5759

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

6769
```bash
6870
sysctl fs.file-max
69-
fs.file-max = 50384
71+
fs.file-max = 200000
7072
```
7173

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

8183
```config
8284
riak soft nofile 4096
83-
riak hard nofile 65536
85+
riak hard nofile 200000
8486
```
8587

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

9092
```bash
91-
ulimit -n 65536
93+
ulimit -n 200000
9294
```
9395

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

158-
<div><pre><code>&ast; soft nofile 65536
159-
&ast; hard nofile 65536
160+
<div><pre><code>&ast; soft nofile 200000
161+
&ast; hard nofile 200000
160162
</code></pre></div>
161163

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

184186
```config
185-
set rlim_fd_max=65536
187+
set rlim_fd_max=200000
186188
```
187189

188190
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -216,8 +218,8 @@ contains the following XML configuration:
216218
<string>launchctl</string>
217219
<string>limit</string>
218220
<string>maxfiles</string>
219-
<string>65536</string>
220-
<string>65536</string>
221+
<string>200000</string>
222+
<string>200000</string>
221223
</array>
222224
<key>RunAtLoad</key>
223225
<true/>
@@ -227,7 +229,7 @@ contains the following XML configuration:
227229
</plist>
228230
```
229231

230-
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
231233
configuration file should be stored in
232234
`/Library/LaunchDaemons/limit.maxproc.plist` with the following
233235
contents:
@@ -267,14 +269,14 @@ setting the at the session level as well by appending the following
267269
lines to your `bashrc`, `bashprofile`, or analogous file:
268270

269271
```bash
270-
ulimit -n 65536
272+
ulimit -n 200000
271273
ulimit -u 2048
272274
```
273275

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

279281
### Adjusting Open File Limits in Older Versions of OS X
280282

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
@@ -53,7 +53,7 @@ Most operating systems can change the open-files limit using the `ulimit
5353
-n` command. Example:
5454

5555
```bash
56-
ulimit -n 65536
56+
ulimit -n 200000
5757
```
5858

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

6868
```bash
6969
sysctl fs.file-max
70-
fs.file-max = 50384
70+
fs.file-max = 200000
7171
```
7272

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

8282
```config
8383
riak soft nofile 4096
84-
riak hard nofile 65536
84+
riak hard nofile 200000
8585
```
8686

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

9191
```bash
92-
ulimit -n 65536
92+
ulimit -n 200000
9393
```
9494

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

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

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

185185
```config
186-
set rlim_fd_max=65536
186+
set rlim_fd_max=200000
187187
```
188188

189189
[Reference](http://blogs.oracle.com/elving/entry/too_many_open_files)
@@ -217,8 +217,8 @@ contains the following XML configuration:
217217
<string>launchctl</string>
218218
<string>limit</string>
219219
<string>maxfiles</string>
220-
<string>65536</string>
221-
<string>65536</string>
220+
<string>200000</string>
221+
<string>200000</string>
222222
</array>
223223
<key>RunAtLoad</key>
224224
<true/>
@@ -228,7 +228,7 @@ contains the following XML configuration:
228228
</plist>
229229
```
230230

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

270270
```bash
271-
ulimit -n 65536
271+
ulimit -n 200000
272272
ulimit -u 2048
273273
```
274274

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

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

0 commit comments

Comments
 (0)