| David Garcia | 50d786e | 2020-03-30 14:49:40 +0200 | [diff] [blame] | 1 | # Copyright 2020 Canonical Ltd. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # Sysctl values for LXD in production |
| 16 | fs.inotify.max_queued_events=1048576 |
| 17 | fs.inotify.max_user_instances=1048576 |
| 18 | fs.inotify.max_user_watches=1048576 |
| 19 | vm.max_map_count=262144 |
| 20 | kernel.dmesg_restrict=1 |
| 21 | net.ipv4.neigh.default.gc_thresh3=8192 |
| 22 | net.ipv6.neigh.default.gc_thresh3=8192 |
| 23 | net.core.bpf_jit_limit=3000000000 |
| 24 | kernel.keys.maxkeys=2000 |
| 25 | kernel.keys.maxbytes=2000000 |