Main Menu

Search

HTML - Home - ABOUT TARBOTS


Welcome to tarbots.com
... AI Search Assistant

This site has articles which provides information on everyday commands, procedures & scripts for DevOps & Infrastructure technologies which will be very useful for System Admin, DevOps, CloudOps, Network Admins and any teams or individuals working on Infrastructure technologies.

CLICK HERE to learn more about tarbots.com


Technologies Covered In This Site

HTML - HOME - RECENT ARTICLES TITLE


Recent Articles


LINUX: Debugging Tip: How to Know Whether The PID, File Descriptor Is Stale?

When a PID and associated file description is stale, following are the symptoms we see
  • Any connections to the listen address will fail with connected refused messages.
  • Restarting the app process, the PID is not cleared and app process or container instances fails with bind address already in use message.
  • strace -p <PID> command shows that there is no activity on the PID. We may also see messages that the process is detached.


Keywords

PID state zombie process process id PID FD filedescriptor file descriptor file-descriptor cleanup clear clearing

OCNE 2.x: How To Launch Toolbox Diagnostics Pod on Oracle Cloud Native Environment Release 2.x

Following is the command to launch Toolbox Diagnostics Pod on Oracle Cloud Native Environment Release 2.x

ocne cluster console --node <nodename> --toolbox


Keywords

ocne olcne command commands tool toolbox debug debugging diagnostic pod pods launch start starting launching curl tcpdump strace ocne versions releases

KUBERNETES: CURL Commands To Check ETCD Health Status And Metrics (Without Using ETCDCTL Command)

Following CURL commands can be executed on the Kubernetes control nodes where etcd pods are running to check the health status of etcd and get metrics.

CURL command to check healthstatus of etcd

curl --cert /etc/kubernetes/pki/etcd/server.crt --key /etc/kubernetes/pki/etcd/server.key --cacert /etc/kubernetes/pki/etcd/ca.crt -L https://127.0.0.1:2379/health

Below is sample output which shows etcd health status as healthy.

{"health":"true","reason":""}

CURL command to check metrics of etcd

curl --cert /etc/kubernetes/pki/etcd/server.crt --key /etc/kubernetes/pki/etcd/server.key --cacert /etc/kubernetes/pki/etcd/ca.crt -L https://127.0.0.1:2379/metrics

Below is partial snippet of sample output.

# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
# TYPE process_virtual_memory_max_bytes gauge
process_virtual_memory_max_bytes 1.8446744073709552e+19
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 0
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0


Keywords

etcd etcdctl curl command commands validate check checking validating state status up and running endpoint end point

KUBERNETES TROUBLESHOOTING: COMMANDS: Pod, Services and PVC Issues




Keywords:

k8s kubernetes troubleshooting, debugging, debug, troubleshoot, useful, command, commands, kubectl, problem, problems