mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
15 lines
202 B
Python
15 lines
202 B
Python
import random
|
|
|
|
import bottle
|
|
|
|
|
|
@bottle.route("/hostname")
|
|
def index():
|
|
if random.randrange(2) == 0:
|
|
return "proxy1"
|
|
else:
|
|
return "proxy2"
|
|
|
|
|
|
bottle.run(host="0.0.0.0", port=8080)
|