本文主要介绍 CPU绑核配置。 默认情况下,kubelet 使用 CFS配额 来执行Pod 的 CPU 约束。 当节点上运行了很多 CPU 密集的 Pod 时,工作负载可能会迁移到不同的 CPU 核, 这取决于调度时 Pod 是否被扼制,以及哪些 CPU 核是可用的。许多应用对这种迁移不敏感,因此无需任何干预即可正常工作。有些应用对CPU敏感,CPU敏感型应用有如下特点。
本文介绍使用SELECT语法时,not in中包含了null,结果全为真的场景。 teledb=# select * from teledb_pg where id not in (1,3); id | nickname ----+---------- 2 | TELEDB 4 | (2 rows) teledb=# select * from teledb_pg where id not in (1,3,null); id | nickname ----+---------- (0 rows)