Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

num_cpus=0 when using milicores for cpu resources #154

Open
ghost opened this issue Feb 3, 2023 · 0 comments
Open

num_cpus=0 when using milicores for cpu resources #154

ghost opened this issue Feb 3, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 3, 2023

How I installed the chart:

cat <<EOF | helm upgrade --install yugabyte yugabyte --repo https://charts.yugabyte.com --values -
replicas:
  master: 3
  tserver: 3
  ## Used to set replication factor when isMultiAz is set to true
  totalMasters: 3
resource:
  master:
    requests:
      cpu: 100m
      memory: 100Mi
    limits:
      cpu: 500m
      memory: 500Mi
  tserver:
    requests:
      cpu: 100m
      memory: 100Mi
    limits:
      cpu: 500m
      memory: 500Mi
EOF

You'll see --num_cpus=0 in the flags in the running processes from one of the tablet pods. Disregard qemu-x86_64, I'm using Kind on an M1 Mac.


USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.0 152484  5276 ?        Ssl  01:19   0:00 /usr/bin/qemu-x86_64 /sbin/tini /sbin/tini -- /bin/bash -c if [ -f /home/yugabyte/tools/k8s_preflight.py ]; then   /home/yugabyte/tools/k8s_preflight.py all fi && \ touch "/mnt/disk0/disk.check" "/mnt/disk1/disk.check" && \ if [ -f /home/yugabyte/tools/k8s_preflight.py ]; then   PYTHONUNBUFFERED="true" /home/yugabyte/tools/k8s_preflight.py \     dnscheck \     --addr="yb-tserver-0.yb-tservers.default.svc.cluster.local" \     --port="9100" fi && \ if [ -f /home/yugabyte/tools/k8s_preflight.py ]; then   PYTHONUNBUFFERED="true" /home/yugabyte/tools/k8s_preflight.py \     dnscheck \     --addr="yb-tserver-0.yb-tservers.default.svc.cluster.local:9100" \     --port="9100" fi && \ if [ -f /home/yugabyte/tools/k8s_preflight.py ]; then   PYTHONUNBUFFERED="true" /home/yugabyte/tools/k8s_preflight.py \     dnscheck \     --addr="0.0.0.0" \     --port="9000" fi && \ if [[ -f /home/yugabyte/tools/k8s_parent.py ]]; then   k8s_parent="/home/yugabyte/tools/k8s_parent.py" else   k8s_parent="" fi && \ if [ -f /home/yugabyte/tools/k8s_preflight.py ]; then   PYTHONUNBUFFERED="true" /home/yugabyte/tools/k8s_preflight.py \     dnscheck \     --addr="yb-tserver-0.yb-tservers.default.svc.cluster.local" \     --port="9042" fi && \ if [ -f /home/yugabyte/tools/k8s_preflight.py ]; then   PYTHONUNBUFFERED="true" /home/yugabyte/tools/k8s_preflight.py \     dnscheck \     --addr="0.0.0.0:5433" \     --port="5433" fi && \ exec ${k8s_parent} /home/yugabyte/bin/yb-tserver \   --fs_data_dirs=/mnt/disk0,/mnt/disk1 \   --tserver_master_addrs=yb-master-0.yb-masters.default.svc.cluster.local:7100,yb-master-1.yb-masters.default.svc.cluster.local:7100,yb-master-2.yb-masters.default.svc.cluster.local:7100 \   --metric_node_name=yb-tserver-0 \   --memory_limit_hard_bytes=456130560000 \   --stderrthreshold=0 \   --num_cpus=0 \   --undefok=num_cpus,enable_ysql \   --use_node_hostname_for_local_tserver=true \   --rpc_bind_addresses=yb-tserver-0.yb-tservers.default.svc.cluster.local \   --server_broadcast_addresses=yb-tserver-0.yb-tservers.default.svc.cluster.local:9100 \   --webserver_interface=0.0.0.0 \   --enable_ysql=true \   --pgsql_proxy_bind_address=0.0.0.0:5433 \   --cql_proxy_bind_address=yb-tserver-0.yb-tservers.default.svc.cluster.local 
root          11  0.0  0.1 194416 21884 ?        Sl   01:19   0:00 /usr/bin/qemu-x86_64 /usr/bin/python python /home/yugabyte/tools/k8s_parent.py /home/yugabyte/bin/yb-tserver --fs_data_dirs=/mnt/disk0,/mnt/disk1 --tserver_master_addrs=yb-master-0.yb-masters.default.svc.cluster.local:7100,yb-master-1.yb-masters.default.svc.cluster.local:7100,yb-master-2.yb-masters.default.svc.cluster.local:7100 --metric_node_name=yb-tserver-0 --memory_limit_hard_bytes=456130560000 --stderrthreshold=0 --num_cpus=0 --undefok=num_cpus,enable_ysql --use_node_hostname_for_local_tserver=true --rpc_bind_addresses=yb-tserver-0.yb-tservers.default.svc.cluster.local --server_broadcast_addresses=yb-tserver-0.yb-tservers.default.svc.cluster.local:9100 --webserver_interface=0.0.0.0 --enable_ysql=true --pgsql_proxy_bind_address=0.0.0.0:5433 --cql_proxy_bind_address=yb-tserver-0.yb-tservers.default.svc.cluster.local
root          59  5.4  0.6 1642568 106544 ?      Sl   01:19   0:33 /usr/bin/qemu-x86_64 /home/yugabyte/bin/yb-tserver /home/yugabyte/bin/yb-tserver --fs_data_dirs=/mnt/disk0,/mnt/disk1 --tserver_master_addrs=yb-master-0.yb-masters.default.svc.cluster.local:7100,yb-master-1.yb-masters.default.svc.cluster.local:7100,yb-master-2.yb-masters.default.svc.cluster.local:7100 --metric_node_name=yb-tserver-0 --memory_limit_hard_bytes=456130560000 --stderrthreshold=0 --num_cpus=0 --undefok=num_cpus,enable_ysql --use_node_hostname_for_local_tserver=true --rpc_bind_addresses=yb-tserver-0.yb-tservers.default.svc.cluster.local --server_broadcast_addresses=yb-tserver-0.yb-tservers.default.svc.cluster.local:9100 --webserver_interface=0.0.0.0 --enable_ysql=true --pgsql_proxy_bind_address=0.0.0.0:5433 --cql_proxy_bind_address=yb-tserver-0.yb-tservers.default.svc.cluster.local
root         263  0.0  0.5 603052 95280 ?        Sl   01:20   0:00 /usr/bin/qemu-x86_64 /home/yugabyte/postgres/bin/postgres /home/yugabyte/postgres/bin/postgres -D /mnt/disk0/pg_data -p 5433 -h 0.0.0.0 -k /tmp/.yb.0.0.0.0:5433 -c unix_socket_permissions=0700 -c logging_collector=on -c log_directory=/mnt/disk0/yb-data/tserver/logs -c yb_pg_metrics.node_name=yb-tserver-0 -c yb_pg_metrics.port=13000 -c config_file=/mnt/disk0/pg_data/ysql_pg.conf -c hba_file=/mnt/disk0/pg_data/ysql_hba.conf
root         294  0.0  0.3 447040 49364 ?        Ssl  01:20   0:00 /usr/bin/qemu-x86_64 /home/yugabyte/postgres/bin/postgres /home/yugabyte/postgres/bin/postgres -D /mnt/disk0/pg_data -p 5433 -h 0.0.0.0 -k /tmp/.yb.0.0.0.0:5433 -c unix_socket_permissions=0700 -c logging_collector=on -c log_directory=/mnt/disk0/yb-data/tserver/logs -c yb_pg_metrics.node_name=yb-tserver-0 -c yb_pg_metrics.port=13000 -c config_file=/mnt/disk0/pg_data/ysql_pg.conf -c hba_file=/mnt/disk0/pg_data/ysql_hba.conf
root         300  0.0  0.3 612776 58164 ?        Ssl  01:20   0:00 /usr/bin/qemu-x86_64 /home/yugabyte/postgres/bin/postgres /home/yugabyte/postgres/bin/postgres -D /mnt/disk0/pg_data -p 5433 -h 0.0.0.0 -k /tmp/.yb.0.0.0.0:5433 -c unix_socket_permissions=0700 -c logging_collector=on -c log_directory=/mnt/disk0/yb-data/tserver/logs -c yb_pg_metrics.node_name=yb-tserver-0 -c yb_pg_metrics.port=13000 -c config_file=/mnt/disk0/pg_data/ysql_pg.conf -c hba_file=/mnt/disk0/pg_data/ysql_hba.conf
root         302  0.0  0.3 604216 52964 ?        Ssl  01:20   0:00 /usr/bin/qemu-x86_64 /home/yugabyte/postgres/bin/postgres /home/yugabyte/postgres/bin/postgres -D /mnt/disk0/pg_data -p 5433 -h 0.0.0.0 -k /tmp/.yb.0.0.0.0:5433 -c unix_socket_permissions=0700 -c logging_collector=on -c log_directory=/mnt/disk0/yb-data/tserver/logs -c yb_pg_metrics.node_name=yb-tserver-0 -c yb_pg_metrics.port=13000 -c config_file=/mnt/disk0/pg_data/ysql_pg.conf -c hba_file=/mnt/disk0/pg_data/ysql_hba.conf
root         304  0.0  0.3 447040 49740 ?        Ssl  01:20   0:00 /usr/bin/qemu-x86_64 /home/yugabyte/postgres/bin/postgres /home/yugabyte/postgres/bin/postgres -D /mnt/disk0/pg_data -p 5433 -h 0.0.0.0 -k /tmp/.yb.0.0.0.0:5433 -c unix_socket_permissions=0700 -c logging_collector=on -c log_directory=/mnt/disk0/yb-data/tserver/logs -c yb_pg_metrics.node_name=yb-tserver-0 -c yb_pg_metrics.port=13000 -c config_file=/mnt/disk0/pg_data/ysql_pg.conf -c hba_file=/mnt/disk0/pg_data/ysql_hba.conf
root         812  0.0  0.0 160340  9108 pts/0    Ssl+ 01:29   0:00 /usr/bin/qemu-x86_64 /usr/bin/bash bash -c ps aux|cat
root         819  0.0  0.0 200852 10100 ?        Rl+  Feb02   0:00 ps aux
root         821  0.0  0.0 152512  5436 pts/0    Sl+  01:29   0:00 /usr/bin/qemu-x86_64 /usr/bin/cat cat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants