ShannonAI / service-streamer

Boosting your Web Services of Deep Learning Applications.
Apache License 2.0
1.22k stars 187 forks source link

Redis with auth #59

Open absaravanan opened 4 years ago

absaravanan commented 4 years ago

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

yjiangling commented 4 years ago

@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?