We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
` from flask import Flask from pymilvus import connections, Collection
app = Flask(name)
milvus_config = { "host": "127.0.0.1", "port": "19530", "cover_table": "trend_cover_cnnvec" } connections.connect( alias="default", host=milvus_config['host'], port=milvus_config['port'] ) cover_collection = Collection(milvus_config["cover_table"])
@app.route("/health") def health(): return "ok"
if name == 'main': app.run(host='0.0.0.0', port=5000) `
gunicorn -w 1 -b 0.0.0.0:5000 main:app -k gevent
gunicorn -w 1 -b 0.0.0.0:5000 main:app -k eventlet
run service timeout
pymilvus==2.2.6
No response
The text was updated successfully, but these errors were encountered:
/assign @XuanYang-cn could you help to verifying that
Sorry, something went wrong.
@sealzjh According to grpc team, you need a special patch to make grpc work with gevent, I tested it myself and it works.
Be sure to init_gevent before connect()
init_gevent
connect()
grpc/grpc#4629 (comment)
/unassign /assign @sealzjh
sealzjh
No branches or pull requests
Is there an existing issue for this?
Describe the bug
`
from flask import Flask
from pymilvus import connections, Collection
app = Flask(name)
milvus_config = {
"host": "127.0.0.1",
"port": "19530",
"cover_table": "trend_cover_cnnvec"
}
connections.connect(
alias="default",
host=milvus_config['host'],
port=milvus_config['port']
)
cover_collection = Collection(milvus_config["cover_table"])
@app.route("/health")
def health():
return "ok"
if name == 'main':
app.run(host='0.0.0.0', port=5000)
`
Expected Behavior
不能启动
gunicorn -w 1 -b 0.0.0.0:5000 main:app -k gevent
正常启动
gunicorn -w 1 -b 0.0.0.0:5000 main:app -k eventlet
Steps/Code To Reproduce behavior
Environment details
Anything else?
No response
The text was updated successfully, but these errors were encountered: