Sn0rt commented on issue #9327: URL: https://github.com/apache/apisix/issues/9327#issuecomment-1549274299
> > @bin-53 > > already reproduced. > > <img alt="image" width="931" src="https://user-images.githubusercontent.com/2706161/238586171-a2e12099-820d-4510-9196-5c33e5c94b51.png"> > > to run the process with two instances listen to different ports > > ```python > > from flask import Flask > > from datetime import datetime > > import logging > > > > > > app = Flask(__name__) > > > > import logging > > log = logging.getLogger('werkzeug') > > log.setLevel(logging.ERROR) > > > > @app.route('/test') > > def test_endpoint(): > > current_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3] > > print("Current time:", current_time) > > return '', 200 > > > > @app.route('/test/a') > > def echo_endpoint(): > > return 'a', 200 > > > > > > > > if __name__ == '__main__': > > app.run(host='0.0.0.0') > > ``` > > > > > > > > > > > > > > > > > > > > > > > > the config file of apisix > > ```json > > { > > "uri": "/test/*", > > "name": "test-health", > > "methods": [ > > "GET" > > ], > > "upstream": { > > "nodes": [ > > { > > "host": "192.168.31.224", > > "port": 5000, > > "weight": 1 > > }, > > { > > "host": "192.168.31.224", > > "port": 5001, > > "weight": 1 > > } > > ], > > "retries": 1, > > "timeout": { > > "connect": 1, > > "send": 1, > > "read": 9 > > }, > > "type": "least_conn", > > "checks": { > > "active": { > > "concurrency": 10, > > "healthy": { > > "http_statuses": [ > > 404 > > ], > > "interval": 10, > > "successes": 5 > > }, > > "http_path": "/test", > > "port": 5000, > > "timeout": 1, > > "type": "http", > > "unhealthy": { > > "http_failures": 10, > > "http_statuses": [ > > 506 > > ], > > "interval": 15, > > "tcp_failures": 2, > > "timeouts": 3 > > } > > } > > }, > > "scheme": "http", > > "pass_host": "pass" > > } > > } > > ``` > > my is the same port, but the upstream ip is different, Is it the same thing? In a normal production environment, multiple upstream points must be deployed on different servers。 I think it doesn't matter. I will inspect the code to seek the root cause and then think about this situation again. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
