tiddles

module
v0.0.0-...-97cf3a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: Apache-2.0

README

Tiddles

A ship'cat wonders around catching mices, or bugs. :)

Build the image

  • build with Cloud Builder

    make build
    
  • build locally

    make build-local
    

Build and Deploy to GKE with skaffold

make build-deploy

Run the app locally

make run-server
make run-client

Clean up

make stop
make clean

Debug

# run
docker run --rm -d -p 127.0.0.1:80:80 -p 127.0.0.1:443:443 --name debug tiddles:local

# stop
docker stop debug
docker rmi tiddles:local

Rest APIs

  • GET /

  • GET /error

  • GET /health

  • GET /liveness

  • GET /readiness

  • GET /ping-backend

  • GET /ping-backend-with-db

  • GET /ping-grpc-backend

  • /stress

    • GET /stress/cpu
    • GET /stress/cpu?load=0.1&duration=10

    load: push cpu load to 0.1; duration: keep the cpu load for 10 seconds

    • GET /stress/memory
    • GET /stress/memory?size=100

    size: allocate memroy in MB

  • /dns

    • GET /dns/weight?=1000

    weight: number of concurrent dns queries in each web request

  • /db

    • GET /db
    • GET /db/{id}
    • POST /db/{id}
    • PUT /db/{id}
    • DELETE /db/{id}

    sample rest API

  • /dump

Directories

Path Synopsis
pkg
db
dns

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL