service-streamer icon indicating copy to clipboard operation
service-streamer copied to clipboard

Redis with auth

Open absaravanan opened this issue 5 years ago • 1 comments

As of now, the code doesn't seem to support redis with password. It would be really helpful in production use cases.

absaravanan avatar Feb 18 '20 06:02 absaravanan

@absaravanan 你好,请问你这个redis是怎么部署的?是把redis_worker_example.py中的代码写到flask_example.py中去吗? from service_streamer import run_redis_workers_forever from bert_model import ManagedBertModel

if name == "main": run_redis_workers_forever(ManagedBertModel, 64, 0.1, worker_num=4, cuda_devices=(0, 1, 2, 3))

然后运行gunicorn -c redis_streamer_gunicorn.py flask_example:app?

yjiangling avatar Jun 01 '20 03:06 yjiangling