Comments (4)
Hi @BnJam Thanks for raising the issue. I have tried reproducing your issue in locally without any luck. I'll try to set up a remote and see if network has any effect on this. Can you tell me whether you have a connection timeout issue always or is it only on specific instances like when you try with big tensors etc?
from redisai-py.
I always have a connection timeout. I have tried .ping() with no luck.
I should mention that this is trying to connect to a remote VM (in Azure) running the latest docker image of redisai, using the command:
sudo docker run --name test -v /path/to/redis_conf/redis.conf:/redis.conf -p 6379:6379 --gpus all -it --rm redisai/redisai:latest-gpu redis-server /redis.conf
I have bind commented out and requirepass set.
Having 127.0.0.1 or 0.0.0.0 in bind does not change anything.
The client is on a different Azure VM and attempting the following test snippet
import redisai
import numpy as np
if __name__ == '__main__':
r = redisai.Client(host=<host>, port=<port>, password=<password>, db=0)
print(r) # prints connection object no problem
r.ping() # hangs and times out here
r.tensorset('x', np.array([2]))
r.tensorget('x')
I'm not even trying a big tensor.
from redisai-py.
https://stackoverflow.com/questions/62768421/redisai-client-password-auth-process/62790078#62790078
I solved my issue with this workaround. I suspect that dropping the port argument (although, I can't seen to fully understand why that solved my connection issue) may in fact let me connect with a password.
As of right now, the redisai database is isolated on the VNet in Azure where the workers reside. However, I was first attempting to connect to an exposed database that required a password - I will test and report back here.
from redisai-py.
Closing this issue as it couldn't be reproduced. Feel free to re-open if you still face issues. Also, it might be worth looking at base redis package since the connection issue doesn't have to be specific to redisai-py
from redisai-py.
Related Issues (20)
- Support variadic arguments in scriptrun
- DAG.run() throws if response error by any element
- Use native `decode_responses` argument to decode
- Response error for pytorch HOT 2
- Issues with FLOAT tensors HOT 2
- sklearn onnx - expected 2 outputs but got 1 HOT 1
- Add CONTRIBUTOR guideline
- DAGRUN is not working with RedisAI 1.2.1 HOT 5
- modelset chunk size should be configurable HOT 2
- add script run to DAG
- add support for SCRIPTEXECUTE
- add support for DAGEXECUTE
- Enable postprocess on dag
- Pass transaction and shard hints into pipeline when set.
- add bool tensor support
- add string tensor support
- Python 3.10 Support HOT 1
- Bulk get tensors HOT 2
- How to use redisai client in redis cluster environment?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redisai-py.