• Skip to main content

Uly.me

cloud engineer

  • Home
  • Archives
  • Search

Use Curl on Load Balancers

December 18, 2019 by Ulysses

You can use the curl command to test if your load balancer is working as expected. The curl command will alternately and randomly access several instances in your load balancer. If you have 3 instances behind your load balancer, it will be cycled across all 3. The -m1 command means max time is set to 1 second.

while true; do curl -m1 [IP_ADDRESS]; done

while true; do curl -m1 [IP_ADDRESS]; done

Filed Under: Cloud Tagged With: aws, curl, gcp, load balancer, test

Search The Website

Subscribe Via Email

  • Home
  • About
  • Contact

Copyright © 2022