wordpress - Will a cluster work automatically on balancing resources? -
i have created kubernetes cluster of 2 nodes , 1 master on centos 7. when use kubectl nodes, lists nodes , seems working.
my question is: cluster automatically balance resources between nodes? mean, let's installed nginx web server wordpress on master node (which has 512mb of memory), if memory usage full on master, automatically depend on nodes according needs? or should manual?
and balance cpu load between nodes?
the key point sfgroups mentioned pod cannot split between nodes, there no "balancing of resources" when resources exhausted on node. process running in pod oom killed kernel if hits memory cgroup limit, , throttled if hits cpu cgroup limit.
you need pods fit onto nodes room spare daemons run on every node (kubelet , kube-proxy).
the automatic things kubernetes (related question) are: 1) scheduling pods on nodes fit, 2) autoscaling pods (when running horizontal pod autoscaler), , 3) autoscaling nodes (when running cluster autoscaler). might interested in behavior of replicaset , deployment, control number of pods present in cluster specific application.
Comments
Post a Comment