OS Configuration/Tuning

Setting Recommend Value Rationale Note
fs.file-max 2097152 Maximum number of open files system-wide 全系统最大打开文件数
vm.swappiness 0 turn off swappiness 关闭交换
net.core.somaxconn 1024 maximum number of simul connection attempts 同时尝试连接的最大次数
net.core.netdev_max_backlog 30000 Set maximum number of packets, queued on the INPUT side, when the interface receives packets faster than kernel can process them. Recommended setting is for 10GbE links. For 1GbE links use 8000. 当接口接收数据包的速度快于内核处理数据包的速度时,设置在INPUT端排队的最大数据包数。推荐设置用于10GbE链接。对于1GbE链接,请使用8000。
net.core.wmem_max 67108864 Set max to 16MB (16777216) for 1GbE links and 64MB(67108864) for 10GbE links. 对于1GbE链接,最大设置为16MB(16777216),对于10GbE链接,最大设置为64MB(67108864)。
net.core.rmem_max 67108864 Set max to 16MB (16777216) for 1GbE links and 64MB(67108864) for 10GbE links. 对于1GbE链接,最大设置为16MB(16777216),对于10GbE链接,最大设置为64MB(67108864)。
net.ipv4.tcp_congestion_control htcp There seem to be bugs in both bic and cubic (the default) for a number of versions of the Linux kernel up to version 2.6.33. The kernel version for Redhat 5.x is 2.6.18-x and 2.6.32-x for Redhat 6.x 这个表示的一种TCP算法,包括htcp,bbr,cubic,bic 直到版本2.6.33的许多Linux内核似乎在bic和cubic(默认)中均存在错误。Redhat 5.x的内核版本是2.6.18-x,而Redhat 6.x的内核版本是2.6.32-x。这个表示的是一种TCP算法,包括htcp,bbr,cubic,bic
net.ipv4.tcp_congestion_window 10 This is the default for Linux operating systems based on
Linux kernel 2.6.39 or later.
这是基于Linux内核2.6.39或更高版本的Linux操作系统的默认设置。
net.ipv4.tcp_fin_timeout 10 This setting determines the time that must elapse before TCP/IP can release a closed connection and reuse its resources. During this TIME_WAIT state, reopening the connection to the client costs less than establishing a new connection. By reducing the value of this entry, TCP/IP can release closed connections faster, making more resources available for new connections. The default value is 60. The
recommened setting lowers its to 10. You can lower this even further, but too low, and you can run into socket close errors in networks with lots of jitter.与TCP握手的状态相关,表示其中一个握手的间隔。
此设置确定TCP / IP可以释放关闭的连接并重新使用其资源之前必须经过的时间。在此TIME_WAIT状态下,重新建立与客户端的连接比建立新的连接花费少。通过减小此条目的值,TCP / IP可以更快地释放关闭的连接,从而为新连接提供更多资源。默认值是60。建议的设置将其降低到10。您甚至可以将其降低得更低,但又太低,并且在存在很多抖动的网络中可能会遇到套接字关闭错误。握手的间隔。
net.ipv4.tcp_keepalive_interval 30 This determines the wait time between isAlive interval probes. Default value is 75. Recommended value reduces this in keeping with the reduction of the overall keepalive time. 这确定了“活动间隔”探测之间的等待时间。默认值是75。建议值会减少此值,以减少总的保持活动时间。
net.ipv4.tcp_keepalive_probes 5 How many keepalive probes to send out before the socket is timed out. Default value is 9. Recommended value reduces this to 5 so that retry attempts will take 2.5
minutes.
在套接字超时之前要发送多少个保持活动状态的探针。默认值为9。建议的值将该值减小为5,以便重试尝试将花费2.5分钟。
net.ipv4.tcp_keepalive_time 600 Set the TCP Socket timeout value to 10 minutes instead of 2 hour default. With an idle socket, the system will wait tcp_keepalive_time seconds, and after that try tcp_keepalive_probes times to send a TCP KEEPALIVE in intervals of tcp_keepalive_intvl seconds. If the retry
attempts fail, the socket times out.
将“ TCP套接字超时”值设置为10分钟,而不是默认的2小时。使用空闲套接字时,系统将等待tcp_keepalive_time秒,然后尝试tcp_keepalive_probes次以tcp_keepalive_intvl秒为间隔发送TCP KEEPALIVE。如果重试失败,则套接字超时。
net.ipv4.tcp_low_latency 1 Configure TCP for low latency, favorig low latency over throughput 将TCP配置为低延迟,从而在吞吐量上实现低延迟
net.ipv4.tcp_max_orphans 16384 Limit number of orphans, each orphan can eat up to 16M (max wmem) of unswappable memory 限制孤儿数量,每个孤儿最多可以吃掉16M(最大wmem)不可交换的内存
net.ipv4.tcp_max_tw_buckets 1440000 Maximal number of time wait sockets held by system simultaneously. If this number is exceeded time-wait socket is immediately destroyed and warning is printed. This limit
exists to help prevent simple DoS attacks.
系统同时持有的最大等待套接字数。如果超过此数量,等待时间插座将立即销毁并打印警告。存在此限制有助于防止简单的DoS攻击。
net.ipv4.tcp_no_metrics_save 1 Disable caching TCP metrics on onnection close 在连接关闭时禁用缓存TCP指标
net.ipv4.tcp_orphan_retries 0 Limit number of orphans, each orphan can eat up to 16M(max wmem) of unswappable memory 限制孤儿数量,每个孤儿最多可以吃掉16M(最大wmem)的不可交换内存
net.ipv4.tcp_rfc1337   Enable a fix for RFC1337 - time-wait assassination hazardsin TCP 启用RFC1337的修复-TCP中的时间等待暗杀危险
net.ipv4.tcp_rmem

10240

131072

33554432

Setting is min/default/max. Recommend increasing theLinux autotuning TCP buffer limit to 32MB 设置为最小/默认/最大。建议将Linux自动调整TCP缓冲区限制增加到32MB
net.ipv4.tcp_sack 1 Enable select acknowledgmen 启用选择确认
net.ipv4.tcp_slow_start_after_idle 0 By default, TCP starts with a single small segment, gradually increasing it by one each time. This results in unnecessary
slowness that impacts the start of every request.
默认情况下,TCP从一个小段开始,然后每次逐渐增加一个。这会导致不必要的延迟,从而影响每个请求的开始。
net.ipv4.tcp_syncookies 0 Many default Linux installations use SYN cookies to protect the system against malicious attacks that flood TCP SYN
packets. The use of SYN cookies dramatically reduces network bandwidth, and can be triggered by a running Geode cluster. If your Geode cluster is otherwise protected against such attacks, disable SYN cookies to ensure that Geode network throughput is not affected.
NOTE: if SYN floods are an issue and SYN cookies can’t be disabled, try the following:
net.ipv4.tcp_max_syn_backlog="16384"
net.ipv4.tcp_synack_retries="1"
net.ipv4.tcp_max_orphans="400000"
许多默认的Linux安装使用SYN cookie来保护系统免受淹没TCP SYN数据包的恶意攻击。使用SYN cookie可以大大减少网络带宽,并且可以由正在运行的Geode集群触发。如果您的Geode群集受到其他保护,可免受此类攻击,请禁用SYN cookie以确保Geode网络吞吐量不受影响。注意:如果出现SYN泛滥且无法禁用SYN cookie的情况,请尝试以下操作:net.ipv4.tcp_max_syn_backlog =“ 16384” net.ipv4.tcp_synack_retries =“ 1” net.ipv4.tcp_max_orphans =“ 400000”
net.ipv4.tcp_timestamps 1 Enable timestamps as defined in RFC1323: 启用RFC1323中定义的时间戳记:
net.ipv4.tcp_tw_recycle 1 1 This enables fast recycling of TIME_WAIT sockets. The default value is 0 (disabled). Should be used with caution with load balancers. 这样可以快速回收TIME_WAIT套接字。默认值为0(禁用)。应谨慎使用负载平衡器。
net.ipv4.tcp_tw_reuse  1 This allows reusing sockets in TIME_WAIT state for new connections when it is safe from protocol viewpoint. Default value is 0 (disabled). It is generally a safer alternative to tcp_tw_recycle. The tcp_tw_reuse setting is
particularly useful in environments where numerous short connections are open and left in TIME_WAIT state, such as web servers and load balancers.
从协议的角度来看,这可以在安全的情况下将TIME_WAIT状态的套接字重新用于新连接。默认值为0(禁用)。通常,它是tcp_tw_recycle的更安全的替代方法。tcp_tw_reuse设置在Web服务器和负载均衡器等许多短连接处于打开状态并处于TIME_WAIT状态的环境中特别有用。
net.ipv4.tcp_window_scaling 1 Turn on window scaling which can be an option to enlarge the transfer window: 打开窗口缩放,可以选择放大传输窗口:
       
       
       

Geode 最佳实践 系统测试配置相关推荐

  1. SAP BPC最佳实践-如何配置和使用BPC的钻取Drill through

    BPC的Drill through功能在75版本中就已经具备,简单言之,就是在BPC页面中,将上下文环境的维度成员作为参数,传递到预先设计好的Drill through地址.这个地址可以是一个普通的U ...

  2. 基于 react, redux 最佳实践构建的 2048

    前段时间 React license 的问题闹的沸沸扬扬,搞得 React 社区人心惶惶,好在最终 React 团队听取了社区意见把 license 换成了 MIT.不管 React license ...

  3. RAC 和 Oracle Clusterware 最佳实践和初学者指南 (Solaris) (文档 ID 1526517.1)

      RAC 和 Oracle Clusterware 最佳实践和初学者指南 (Solaris) (文档 ID 1526517.1) 转到底部 文档内容 用途   适用范围   详细信息   RAC 和 ...

  4. android log4j2,Log4j2最佳实践

    [TOC] 1. 版本选择 推荐使用log4j-2.11 推荐使用slf4j作为日志门面 2. pom依赖配置和升级方案 pom配置 org.slf4j slf4j-api 1.7.24 org.ap ...

  5. DB2 最佳实践: 性能调优和问题诊断最佳实践

    最佳实践的相关文章可见:http://www.ibm.com/developerworks/cn/data/bestpractices/ DB2 最佳实践: 性能调优和问题诊断最佳实践,第 1 部分 ...

  6. Zabbix最佳实践一:Zabbix4.0.2的安装与配置

    Zabbix最佳实践一:Zabbix4.0.2的安装与配置 耕耘实录                                    关注                             ...

  7. db2 参数标识符使用无效_在Python应用程序中使用配置的最佳实践

    大多数计算机应用程序都可以使用配置来指定行为,无论是通过命令行标志.环境变量还是配置文件.作为一名软件开发人员,处理配置时会遇到一些挑战,例如解析不合法的输入.验证它以及在程序的任意位置访问它.以Py ...

  8. 可能是Asp.net Core On host、 docker、kubernetes(K8s) 配置读取的最佳实践

     写在前面 为了不违反广告法,我竭尽全力,不过"最佳实践"确是标题党无疑,如果硬要说的话 只能是个人最佳实践. 问题引出 可能很多新手都会遇到同样的问题:我要我的Asp.net ...

  9. .NET Core开发实战(第15课:选项框架:服务组件集成配置的最佳实践)--学习笔记...

    15 | 选项框架:服务组件集成配置的最佳实践 这一节讲解如何使用选项框架来处理服务和配置的关系 选项框架的特性: 1.支持单例模式读取配置 2.支持快照 3.支持配置变更通知 4.支持运行时动态修改 ...

最新文章

  1. 上海交大、华为海思提出X-volution,发力网络核心基础架构创新
  2. PythonGUI开发:59行代码开发小型商店添加系统
  3. 解析IT行业的苦逼工作!(漫画)
  4. 麒麟linux百度云,百度网盘 Linux 版发布,搭配优麒麟运行更完美!
  5. 利用用户级线程提高多线程应用的性能
  6. SuSe防火墙iptables配置
  7. Tensorflow中的tf.keras库
  8. 3.GitLab 用户管理
  9. 基于复杂网络的股票分析论文研读
  10. 服务器主板支持nvme,给老主板刷上一个加入支持NVMe模块的改版“BIOS”
  11. 阶乘的0 【南阳 oj 题目84】
  12. 计算机在段前加项目符号,word中给段落添加项目符号的方法
  13. idea 提示Expecting newline or semicolon解决办法
  14. 天津大学计算机学院博士招生目录,天津大学计算机科学与技术学院考博招生人数和专业.pdf...
  15. Allegro在PCB中区域规则设置方法
  16. xz2p更新android 9,索尼 XZ2 迎来安卓 9.0 更新,但少了全面屏手势
  17. 使用计算机打印资料时需要安装打印机驱动,详细教您如何在计算机上安装打印机驱动程序...
  18. Java入门必背100条
  19. Suzy找到实习了吗Day 11 |栈与队列中途 20. 有效的括号,1047. 删除字符串中的所有相邻重复项,150. 逆波兰表达式求值
  20. C++11使用emplace_back代替push_back

热门文章

  1. 关于office2016突然无法启动的解决方法(只是针对某一问题)
  2. 时间复杂度和空间复杂度详解带例题(精)
  3. 出现“调用的目标发生了异常”“Exception has been thrown by the target of an invocation”的解决办法
  4. java 生成pdf文件_Java 中HTTP响应数据生成PDF,PDF文件的读取
  5. Android刘海屏如何适配?一份详细的Android刘海屏、水滴屏全面屏适配方案
  6. 红旗linux无线网卡,如何让红旗linux使用无线上网卡联网更安全
  7. Photoshop 实例:四步让暗黄肤色变白
  8. Log4j日志的级别与使用
  9. ​全栈创新加速“算力网络”时代来临:英特尔携手中国移动共谱数智华章
  10. 02-如何引入HandleBar.js