mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-18 14:30:49 +00:00
14 lines
193 B
Python
14 lines
193 B
Python
|
import bottle
|
||
|
import random
|
||
|
|
||
|
|
||
|
@bottle.route('/')
|
||
|
def index():
|
||
|
if random.randrange(2) == 0:
|
||
|
return 'proxy1'
|
||
|
else:
|
||
|
return 'proxy2'
|
||
|
|
||
|
|
||
|
bottle.run(host='0.0.0.0', port=8080)
|