Skip to content

che0/uwping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uwping

GitHub release Travis

Simple tool to check response code of GET requests to uwsgi socket (by uwsgi protocol). Return code of the program tells whether it got response with expected status code.

Usage

Usage: ./uwping [options] uwsgi:https://host:port/path

Parameters:
  -expected_status int
        expected_status (default 200)
  -host string
        HTTP_HOST
  -modifier1 int
        modifier1
  -remote string
        remote addr (default "127.0.0.1")

Examples

uwget uwsgi:https://127.0.0.1:3031/health
uwget -expected_status 404 uwsgi:https://127.0.0.1:3031/not_exist

You can directly use it in your Dockerfile:

ADD https://github.com/che0/uwping/releases/download/14.0/uwping /usr/local/bin/uwping
RUN chmod +x /usr/local/bin/uwping

And then as liveness probe in Kubernetes pods:

      containers:
      - livenessProbe:
          exec:
            command:
              - uwping
              - uwsgi:https://localhost:9090/alive

About

uwsgi health checker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%