详情页标题前

腾讯云容器服务Management 参数介绍同尘科技

详情页1

功能概览

Management 参数为节点常用自定义配置提供了统一的入口,您可通过该入口为原生节点底层的内核参数 KernelArgs 进行调优,同时支持设置 Kubelet\Nameservers\Hosts 来满足业务部署的环境要求。

Management 参数项

参数项 描述
KubeletArgs 设置业务部署时需要自定义的 Kubelet 相关参数。
Nameservers 设置业务部署环境需要 DNS 服务器地址。
Hosts 设置业务部署环境所需要的 Hosts。
KernelArgs 设置内核参数对业务进行性能调优(该功能目前白名单开放,可 提交工单 申请)。

说明1. 已放开自定义配置的 Kubelet 参数和集群版本相关,若当前集群在控制台可选的 Kubelet 参数无法满足您的需求,请 提交工单 支持。2. 为确保系统组件正常安装,原生节点默认注入腾讯云官方资料库地址 nameserver = 183.60.83.19nameserver = 183.60.82.98

通过控制台操作

方式1:为新增节点池设置 Management 参数

1. 登录 容器服务控制台,参考 新建原生节点 文档创建原生节点。2.新建页面,单击高级设置,为节点设置 Management 参数。如下图所示:

腾讯云容器服务Management 参数介绍同尘科技


3. 单击创建节点池

方式2:为已有节点池设置 Management 参数

1. 登录 容器服务控制台,选择左侧导航栏中的集群。2. 在集群列表页中,单击集群 ID,进入该集群详情页。3. 选择左侧菜单栏中的节点管理 > Worker 节点,在节点池中单击节点池 ID,进入节点池详情页。4. 在节点池详情页中,单击参数设置 > Management > 编辑,修改 Management 参数。如下图所示:

腾讯云容器服务Management 参数介绍同尘科技


5. 您可通过勾选“存量更新”来设置本次参数修改是否针对节点池中的存量节点生效,勾选后本次对 Management 的更改(包括删除、更新、追加)会对节点池内全量节点(包括存量和增量)生效。如下图所示:

腾讯云容器服务Management 参数介绍同尘科技


更新步长:系统将分批执行运维参数更新操作,该参数定义每批次可同时执行更新的节点数。最大不可用配置数:更新失败(包含更新中)的节点超过该设定值时,系统将暂停更新操作。6. 单击确定。您可在节点池的“运维记录”中查看更新进展和结果。警告:某些 Kubelet 参数对存量节点生效时会触发业务 Pod 重启,例如 “feature-gates: EnableInPlacePodResize=true”、“kube-reserved: xxx”、“eviction-hard: xxx”、“max-pods: xxx”,建议评估风险后谨慎操作。

通过 YAML 操作

apiVersion: node.tke.cloud.tencent.com/v1beta1kind: MachineSetspec:  autoRepair: false  deletePolicy: Random  displayName: xxxxxx  healthCheckPolicyName: ""  instanceTypes:  - SA2.2XLARGE8  replicas: 2  scaling:    createPolicy: ZoneEquality  subnetIDs:  - subnet-xxxxx  - subnet-xxxxx  template:    spec:      displayName: tke-np-bqclpywh-worker      providerSpec:        type: Native        value:          instanceChargeType: PostpaidByHour          keyIDs:          - skey-xxxxx          lifecycle: {}          management:            kubeletArgs:            - feature-gates=EnableInPlacePodResize=true            - allowed-unsafe-sysctls=net.core.somaxconn            - root-dir=/var/lib/test            - registry-qps=1000            hosts:            - Hostnames:              - static.fake.com              IP: 192.168.2.42            nameservers:            - 183.60.83.19            - 183.60.82.98            kernelArgs:            - kernel.pid_max=65535            - fs.file-max=400000            - net.ipv4.tcp_rmem="4096 12582912 16777216"            - vm.max_map_count="65535"          metadata:            creationTimestamp: null          securityGroupIDs:          - sg-b3a93lhv          systemDisk:            diskSize: 50            diskType: CloudPremium      runtimeRootDir: /var/lib/containerd  type: Native

KubeletArgs 参数说明

1. 不同账户、不同集群版本下支持配置的 kubelet 参数不完全一致,若当前参数不满足您的需求,您可以通过 在线客服 或 提交工单 与我们联系。2. 以下参数不推荐修改,否则很大概率会影响节点上的业务正常运行:container-runtimecontainer-runtime-endpointhostname-overridekubeconfigroot-dir

KernelArgs 参数说明

下面列出了支持调整的 OS 参数和接受的值。

套接字和网络优化

对于预期会处理大量并发会话的代理节点,您可以使用下面的 TCP 和网络选项调整。

编号 参数 默认值 允许的值 / 范围 参数类型 范围
1 “net.core.somaxconn” 32768 4096 – 3240000 int The maximum length of the listening queue for each port in the system.
2 “net.ipv4.tcp_max_syn_backlog” 8096 1000 – 3240000 int The maximum length of tcp SYN queue length.
3 “net.core.rps_sock_flow_entries” 8192 1024 – 536870912 int The maximum size of hash table for RPS.
4 “net.core.rmem_max” 16777216 212992 – 134217728 int The maximum size, in bytes, of the receive socket buffer.
5 “net.core.wmem_max” 16777216 212992 – 134217728 int The maximum size, in bytes, of the send socket buffer.
6 “net.ipv4.tcp_rmem” “4096 12582912 16777216” 1024 – 2147483647 string The min/default/max size of tcp socket receive buffer.
7 “net.ipv4.tcp_wmem” “4096 12582912 16777216” 1024 – 2147483647 string The min/default/max size of tcp socket send buffer.
8 “net.ipv4.neigh.default.gc_thresh1” 2048 128 – 80000 int The minimum number of entries that can be retained. If the number of entries is less than this value, the entries will not be recycled.
9 “net.ipv4.neigh.default.gc_thresh2” 4096 512 – 90000 int When the number of entries exceeds this value, the GC will clear the entries longer than 5 seconds.
10 “net.ipv4.neigh.default.gc_thresh3” 8192 1024 – 100000 int Maximum allowable number of non-permanent entries.
11 “net.ipv4.tcp_max_orphans” 32768 4096 – 2147483647 int Maximal number of TCP sockets not attached to any user file handle, held by system. Increase this parameter properly to avoid the ‘Out of socket memory’ error when the load is high.
12 “net.ipv4.tcp_max_tw_buckets” 32768 4096 – 2147483647 int Maximal number of timewait sockets held by system simultaneously. Increase this parameter properly to avoid ‘TCP: time wait bucket table overflow’ error.

文件句柄限制

在为大量流量提供服务时,所服务的流量通常来自大量本地文件。 您可以略微调整以下内核设置和内置限制,以便只占用部分系统内存来处理更大的量。

编号 参数 默认值 允许的值 / 范围 参数类型 范围
1 “fs.file-max” 3237991 8192 – 12000500 int Limit on the total number of fd, including socket, in the entire system.
2 “fs.inotify.max_user_instances” 8192 1024 – 2147483647 int Limit on the total number of inotify instances.
3 “fs.inotify.max_user_watches” 524288 781250 – 2097152 int The total number of inotify watches is limited. Increase this parameter to avoid ‘Too many open files’ errors.

虚拟内存

以下设置可用于调整 Linux 内核虚拟内存 (VM) 子系统的操作以及向磁盘进行脏数据的 writeout。

编号 参数 默认值 允许的值 / 范围 参数类型 范围
1 “vm.max_map_count” 262144 65530 – 262144 int The maximum number of memory map areas a process may have.

工作线程限制

编号 参数 默认值 允许的值 / 范围 参数类型 范围
1 “kernel.threads-max” 4194304 4096 – 4194304 int The system-wide limit on the number of threads (tasks) that can be created on the system.
2 “kernel.pid_max” 4194304 4096 – 4194304 int PIDs greater than this value are not allocated; thus, the value in this file also acts as a system-wide limit on the total number of processes and threads.



容器服务官网1折活动,限时活动,即将结束,速速收藏
同尘科技为腾讯云授权服务中心。
购买腾讯云产品享受折上折,更有现金返利。同意关联立享优惠

转转请注明出处:https://www.yunxiaoer.com/147347.html

(0)
上一篇 2023年12月9日 下午12:38
下一篇 2023年12月9日 下午12:38
详情页2

相关推荐

  • 腾讯云TDSQL-C MySQL版标签简介

    标签是腾讯云提供的用于标识云上资源的标记,是一个键-值对(Key-Value),详细介绍请参见 标签概述。您可以根据各种维度(例如,业务、用途、负责人等)使用标签对 TDSQL-C MySQL 版资源进行分类管理。通过标签可以非常方便地过滤出对应的资源。标签键-值对(Key-Value),在腾讯云没有任何语言的含义,会严格按字符串进行解析匹配,在使用过程中需…

    腾讯云 2023年12月9日
  • 腾讯云对象存储对象访问 URL

    简介 本文档提供获取对象访问 URL 的代码示例。 获取对象访问 URL 功能说明 获取对象访问 URL 用于匿名下载或分发。注意 COS Go SDK 版本需要大于等于 v0.7.26。 方法原型 func (s *ObjectService) GetObjectURL(key string) *url.URL 请求示例 package mainimpo…

    腾讯云 2023年12月9日
  • 信息流广告,信息流部分建议宽度830px,只针对默认列表样式,顺序随机
  • dataworks在脚本模式配置任务,怎么实现创建一张与需要传输数据表结构一样的表呢?-云小二-阿里云

    dataworks在脚本模式配置任务,怎么实现创建一张与需要传输数据表结构一样的表呢,还是这一步只能手动在目标数据库执行? 以下为热心网友提供的参考意见 在DataWorks脚本模式配置任务时,您可以使用ODPS SQL节点来创建与需要传输数据表结构一样的表。具体步骤如下: 在脚本模式中添加一个ODPS SQL节点,并编写SQL语句来创建目标表的结构。例如,…

    阿里云 2024年1月7日
  • 腾讯云轻量应用服务器初始化云硬盘(大于等于2TB)云小二

    操作场景 本文以云硬盘容量大于等于2TB为例,提供云硬盘的初始化操作指导。关于云磁盘初始化场景的更多介绍,请参见 初始化场景介绍。MBR 支持的磁盘最大容量为2TB,因此当为容量大于2TB的磁盘分区时,请采用 GPT 分区形式。对于 Linux 操作系统而言,当磁盘分区形式选用 GPT 时,fdisk 分区工具将无法使用,需要采用 parted 工具。 前提…

    2023年12月9日
  • 腾讯云对象存储删除目录

    注意您目前查阅的是历史版本 API 文档,已不再更新和维护,我们建议您查阅新版 API 文档。 描述 使用 API 删除指定目录。前置条件:必须已清空该目录下的所有文件或文件夹。限制条件:目标目录不可填写/,无法删除根目录,即无法删除 Bucket。 请求 请求语法 POST /files/v2/<appid>/<bucket_name&g…

    腾讯云 2023年12月9日

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
本站为广大会员提供阿里云、腾讯云、华为云、百度云等一线大厂的购买,续费优惠,保证底价,买贵退差。