Re: Redis

2023-12-03 Thread Theodore Keloglou
Redis is pracitically a database so you can add it as a secondary one, like it's described here: https://docs.djangoproject.com/en/4.2/topics/db/multi-db/ On Sunday, November 26, 2023 at 2:50:37 PM UTC Sukhrob Turaev wrote: > How to setup and use Redis in Djang app? > > -- You

Connecting Django with Redis

2023-11-27 Thread lone...@gmail.com
Hello all, I wanted to verify the connection between my django and Redis was working and I found this article: https://studygyaan.com/django/connect-django-with-redis I have already implemented what it asked and I got good results. I am kind of curious though, can I use the instructions

Redis

2023-11-26 Thread Sukhrob Turaev
How to setup and use Redis in Djang app? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this dis

How to Configure Celery and Celery Beat with Django deployed on Elastic Beanstalk Amazon Linux 2 with Elasticache as Redis server?

2022-09-23 Thread Edchel Stephen Nini
*Overview:* In our Django web app, there are some background tasks that we want to run every midnight. With this, I tried celery with celery beat. I was able to successfully implement background task scheduler with celery beat and worker with Redis as Celery broker following the tutorial on

Migrating from django-redis to Django 4 new redis back-end

2022-02-14 Thread Benedikt Vogler
Hi! I wanted to migrate from django-redis to the new built-in Redis caching back-end. Previously I could access the existing connection with *django_redis.get_redis_connection* to get a redis-py client. For example, explained here <https://stackoverflow.com/questions/26698803/django-connect

Django Channels and Google Cloud Run Redis

2021-04-18 Thread 'Helmy Sayed' via Django users
Dears, Can someone please help me deploy Django Channels with Google Cloud Run? Thanks in advance, Regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dja

Re: new python dev jobs (was: Try to connect Redis Channel in Django Chat Project)

2021-04-09 Thread Sky Lord
hemu wrote: > > i am python developer fresher but there is no openings on python for > > freshers what i need to do is there any idea you please suggest me please > > > > On Fri, Apr 9, 2021, 2:40 PM Andréas Kühne > > wrote: > > > > > You need to make

Re: new python dev jobs (was: Try to connect Redis Channel in Django Chat Project)

2021-04-09 Thread Ryan Nowakowski
ri, Apr 9, 2021, 2:40 PM Andréas Kühne > wrote: > > > You need to make sure that you have a redis server running and that you > > have the correct connection in django settings for the channels setup. > > > > See more here: > > > > https://channels.readthe

Re: Try to connect Redis Channel in Django Chat Project

2021-04-09 Thread hemanth hemu
i am python developer fresher but there is no openings on python for freshers what i need to do is there any idea you please suggest me please On Fri, Apr 9, 2021, 2:40 PM Andréas Kühne wrote: > You need to make sure that you have a redis server running and that you > have the c

Re: Try to connect Redis Channel in Django Chat Project

2021-04-09 Thread 'Amitesh Sahay' via Django users
plz ping the REDIS server from Django server, also try to telnet ping telnet PORT on which redis is running Regards, Amitesh  On Friday, 9 April, 2021, 02:40:57 pm IST, Andréas Kühne wrote: You need to make sure that you have a redis server running and that you have the correct

Re: Try to connect Redis Channel in Django Chat Project

2021-04-09 Thread Andréas Kühne
You need to make sure that you have a redis server running and that you have the correct connection in django settings for the channels setup. See more here: https://channels.readthedocs.io/en/stable/topics/channel_layers.html?highlight=redis#redis-channel-layer Regards, Andréas Den fre 9 apr

Re: Django Redis error

2020-02-24 Thread Kasper Laudrup
Hi Charles, On 24/02/2020 06.20, Charles wrote: "/home/panda/.local/share/virtualenvs/loans-engine-backend-iaqdRd9l/lib/python3.5/site-packages/django_q/conf.py", line 153     Q_STAT = f"django_q:{PREFIX}:cluster"                                         ^ Python f-strings has only been intr

Django Redis error

2020-02-24 Thread Charles
Hi i have encountered an error after installing django 3.0 and i after i reverted it back to my old version it doesn't run here is the traceback error Loading .env environment variables… Loading .env environment variables… Traceback (most recent call last): File "manage.py", line 19, in

Re: Django Channels Redis: MaxClientsError

2020-02-08 Thread Sabuhi Shukurov
hello, have you solved this issue? On Saturday, 6 July 2019 15:55:26 UTC+4, Cédric Foellmi wrote: > > Hello everyone. I am seeking some help with Django Channels and Redis. > > I have a Django app running on Heroku. This app is rather simple: a Daphne > server, a backgrou

Django Channels Redis: MaxClientsError

2019-07-06 Thread Cédric Foellmi
Hello everyone. I am seeking some help with Django Channels and Redis. I have a Django app running on Heroku. This app is rather simple: a Daphne server, a background worker and a scheduling beat worker (the last two, using Celery). I noticed I hit *very often* Redi's MaxClientsError (

Why is redis multi-node not compatible with channels' websocket module?

2019-02-28 Thread qianzhongdao
When I start multiple redis nodes, django channels will report an error, indicating that no extra slots are allocated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from i

Fwd: channnels -- communication with redis

2019-01-16 Thread Yuval Bachrach
support is required (docker), there is no limitation as for "home". - - I also think that it is likely that I have a communication problem between the redis server running inside the docker container and the client outside but I can't tell fore

Re: channnels -- communication with redis

2019-01-16 Thread Yuval Bachrach
r a normal windows CMD - I am running "Microsoft Windows 10 home" 64 bits. The fact that it is the "home" version can be part of the problem I have, however, while 64 bit support is required (docker), there is no limitation as for "home". - - I

Re: channnels -- communication with redis

2019-01-15 Thread Yuval Bachrach
"windows defender firewall" and executed the commands inside the python shell again: I still have the problem You say: "It looks network/local environment related rather than something redis/docker specific" which I think is correct. Note, however, that when running runserver t

Re: channnels -- communication with redis

2019-01-15 Thread Roger Gammans
Hi Yuval Are you using docker machine ? If so the redis server is on the docker machine's IP not on the localhost so you would need to update the docker host in the CHANNEL_LAYERS portion of settings.py. You show a unix-like shell like for controlling docker; but the connect failed error

Re: channnels -- communication with redis

2019-01-15 Thread Yuval Bachrach
e the environment and keep going with the channels tutorial? On Tue, Jan 15, 2019 at 6:38 PM PASCUAL Eric wrote: > Hi, > > > How is configured your Docker stack exactly ? You should have several > containers in it, at least one for the Redis server, another one for the > Django app.

Re: channnels -- communication with redis

2019-01-15 Thread PASCUAL Eric
Hi, How is configured your Docker stack exactly ? You should have several containers in it, at least one for the Redis server, another one for the Django app. Do you use docker-compose to run the stack ? If yes, could you provide the YAML descriptor of the stack ? Best Eric

channnels -- communication with redis

2019-01-15 Thread Yuval Bachrach
I fail to have django channels communication with redis running at docker container: I am running the channels tutorial and I get an error when just following the tutorial instructions. I am quite new with Django (designed a simple site) and have no knowledge on redis nor docker I am trying to

Re: Using Django Channels to subscribe to a Redis channel

2018-11-22 Thread Yavin Aalto Arba
> understand yet. In my management command, then I probably will have to use >>> `async_to_sync(channel_layer.group_send)` >>> to send the message to consumers (right?). The only problem is that >>> whenever I use async_to_sync it creates a new connection to redis every >

Re: Using Django Channels to subscribe to a Redis channel

2018-11-22 Thread Nasir Sh
robably will have to use >> `async_to_sync(channel_layer.group_send)` >> to send the message to consumers (right?). The only problem is that >> whenever I use async_to_sync it creates a new connection to redis every >> single time. I now use channels_redis v2.3.1 and in this ver

Re: Using Django Channels to subscribe to a Redis channel

2018-11-22 Thread Nasir Shadravan
to_sync(channel_layer.group_send)` >> to send the message to consumers (right?). The only problem is that >> whenever I use async_to_sync it creates a new connection to redis every >> single time. I now use channels_redis v2.3.1 and in this version I don't >> get excessiv

Re: Using Django Channels to subscribe to a Redis channel

2018-11-21 Thread Yavin Aalto Arba
> to send the message to consumers (right?). The only problem is that > whenever I use async_to_sync it creates a new connection to redis every > single time. I now use channels_redis v2.3.1 and in this version I don't > get excessive connections but still it opens a new co

Re: Using Django Channels to subscribe to a Redis channel

2018-11-21 Thread Nasir Sh
eates a new connection to redis every single time. I now use channels_redis v2.3.1 and in this version I don't get excessive connections but still it opens a new connection on every send. I was wondering if that is intentional or not in a sync context and if so, how can it be solved. Th

Re: Celery/Redis Django 2.0 Design Question

2018-10-28 Thread hunter.cur...@gmail.com
I think you are on the right track. I am doing something similar with photos and gps tracks uploaded by users and the celery/redis combo makes it easy to run a compute intensive task without blocking the site. I'm not sure if the celery-signals approach is strictly necessary, however.

Celery/Redis Django 2.0 Design Question

2018-10-27 Thread Mark Phillips
transformations complete successfully. I looked at django-fsm for this, but I think it will be better to run the transformations as celery tasks than to block the site. Does this plan make sense, or am I missing something regarding django and celery/redis. Thanks! Mark -- You received this

Django sessions not configuration issues for Heroku/Redis

2018-10-10 Thread jesse
Hello, I'm having issues with Django sessions on Heroku/Redis. I expect to be able to login and stay logged in. Instead, user will continually be logged out and sessions do not persist. I posted more details on Stack Overflow here: https://stackoverflow.com/questions/52535488/django-ses

Django sessions configuration issues in production with Heroku/Redis

2018-10-10 Thread jesse
is on Stack Overflow: https://stackoverflow.com/questions/52535488/django-sessions-not-working-on-heroku-redis -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an e

[Channels] send message outside consumer, created redis connection never disconnect

2018-08-24 Thread Fly Style
installed packages: channels==2.1.3 asgiref==2.3.2 channelsmultiplexer==0.0.2 chanels-redis==2.3.0 django==2.0.8 from channels.layers import get_channel_layer from asgiref.sync import async_to_sync as a2s cl = get_channel_layer() class Yyy: def tt(self, z): for x in range(0, z

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-05 Thread Tim Nelson
For sure, in order to support haproxy/redis-sentinel asgi_redis would have to handle redis-py's ReadOnlyError and reopen the connection. Way above my pay grade to inject this into 1.X. It seems 2.X might suffer from the same issue as I don't see it handling this condition either. Sti

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-05 Thread Andrew Godwin
Channels 1 and its Redis bindings have different behaviours to 2, so this might be improved there (but I can't guarantee it). Andrew On Sun, Aug 5, 2018 at 11:48 AM Filbert wrote: > Wow, I thought I had this working using haproxy in front of > redis-sentinel. haproxy fails over

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-05 Thread Filbert
Wow, I thought I had this working using haproxy in front of redis-sentinel. haproxy fails over when redis-sentinel fails over within 30 seconds. Problem is Daphne (Channels 1.X), reports over and over: Error trying to receive messages: Error running script (call to

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-02 Thread Andrew Godwin
Thu, Aug 2, 2018 at 5:50 PM Filbert wrote: > Andrew, > Just to be clear, there is no reason I can't use haproxy to front end > redis sentinel to effectively hide all this from channels 1 or 2 right? > Very surprised there isn't anyone running this in production that doesn&#

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-02 Thread Filbert
Andrew, Just to be clear, there is no reason I can't use haproxy to front end redis sentinel to effectively hide all this from channels 1 or 2 right? Very surprised there isn't anyone running this in production that doesn't need some form of HA. Buried trying to get a produ

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-02 Thread Andrew Godwin
The Sentinel option was removed in the 2.0 rewrite as it didn't have someone to help maintain it (I didn't have the time then and don't right now), so you are right, there's currently no easy HA option for Redis with Channels. If you're interested in one, I can give y

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-01 Thread Filbert
and > of course ten instances of redis) do I have a HA solution then? RIght now > Django settings simply has a list of those servers in CHANNEL_LAYERS, what > if (say) three of them crash, will Channels continue to try and hash to the > dead servers? Again, I'll accept a brief

Re: Channels/Redis fault tolerance with Twemproxy?

2018-08-01 Thread Filbert
Thanks Andrew, So with a load-balanced ten web server implementation using Channels (and of course ten instances of redis) do I have a HA solution then? RIght now Django settings simply has a list of those servers in CHANNEL_LAYERS, what if (say) three of them crash, will Channels continue to

Re: Channels/Redis fault tolerance with Twemproxy?

2018-07-22 Thread Andrew Godwin
I don't think redis-cluster supports BLPOP properly still so I don't think you can use it. Andrew On Sun, Jul 22, 2018 at 12:46 PM Filbert wrote: > And just to be clear as to my options, using Channels 2.0 I can use Redis > cluster if I have to to get failover and fault to

Re: Channels/Redis fault tolerance with Twemproxy?

2018-07-22 Thread Filbert
And just to be clear as to my options, using Channels 2.0 I can use Redis cluster if I have to to get failover and fault tolerance, correct? On Sunday, July 22, 2018 at 12:57:22 PM UTC-4, Andrew Godwin wrote: > > I'm afraid I've never used Twemproxy, so I can't really com

Re: Channels/Redis fault tolerance with Twemproxy?

2018-07-22 Thread Andrew Godwin
#x27;t want to add the complexity of Redis Cluster or Redis sentinel. Is a > decent fault tolerant solution to implement Twemproxy, instead. I don't > care about data loss if an instance crashes, but I do care that the > application continues to operate on the remaining instan

Channels/Redis fault tolerance with Twemproxy?

2018-07-20 Thread Filbert
Going to have 10 or more EC2 instances running Channels 2.0. I really don't want to add the complexity of Redis Cluster or Redis sentinel. Is a decent fault tolerant solution to implement Twemproxy, instead. I don't care about data loss if an instance crashes, but I do car

Re: Using Django Channels to subscribe to a Redis channel

2018-07-11 Thread morlandi
I posted a working snippet here https://gist.github.com/morlandi/bb915db7acef0ee0e4cb070921208610 It's a Django management command which subscribes a Redis channel, and upon receiving a new message sends it to django-channel. You can skip the logging and redis connection boilerplate, and

Re: Using Django Channels to subscribe to a Redis channel

2018-04-30 Thread Michael
to listen to the pubsub channel you will >> need a dedicated process to do so, as you can't just poll something like >> that. Given that restriction, you're going to have to write something like >> a management command that opens a connection to Redis and listens for

Re: [Django Channels] Can I use the same redis server as message backend and cache backend the same time?

2017-09-21 Thread CrazyNPC
long as both sites have a different prefix setting > > In both cases I would recommend using separate Redis servers though. They > have very low RAM usage and it's good practice to run them separately. > > Andrew > > On Sat, Aug 5, 2017 at 9:35 PM, CrazyNPC > > wrot

Re: Django runserver not working after installing redis for django channels

2017-09-12 Thread Robin Lery
Yes, i think just running `sudo apt-get install redis-server` installs the old version of redis, instead of the latest one. On Mon, Sep 11, 2017 at 6:40 PM, Artem Malyshev wrote: > Hi, > > Please check your redis installation. It should be at least minimum > required version

Django runserver not working after installing redis for django channels

2017-09-11 Thread Artem Malyshev
Hi, Please check your redis installation. It should be at least minimum required version by redis-py. Regards, Artem. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from i

Django runserver not working after installing redis for django channels

2017-09-11 Thread Robin Lery
I am learning the Django-channels <https://channels.readthedocs.io/en/stable/index.html> concepts and I am stuck when after install the asgi_redis and the redis server <https://channels.readthedocs.io/en/stable/getting-started.html#running-with-channels>. If I have the CHANNEL_LAYER

Re: Channels vs Django-websocket-redis

2017-08-09 Thread John Byrne
C-4, Artem Malyshev wrote: > > Hi, > > I look at django-websockets-redis really quickly. If you decide to use > Redis ASGI layer it may look familiar. > > Main differences I notice so far: > > - ws4redis doesn't have concept of consumers and routing > - it's

Re: Channels vs Django-websocket-redis

2017-08-05 Thread Artem Malyshev
Hi, I look at django-websockets-redis really quickly. If you decide to use Redis ASGI layer it may look familiar. Main differences I notice so far: - ws4redis doesn't have concept of consumers and routing - it's coupled to the subset of WebSocket usage - it's propagate redis to

Channels vs Django-websocket-redis

2017-08-05 Thread Artem Malyshev
Hi, thanks for feedback! I need some time to dig into django-websocket-redis. I'll come back to you soon. Regards, Artem. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

Re: [Django Channels] Can I use the same redis server as message backend and cache backend the same time?

2017-08-05 Thread Andrew Godwin
1. You can - Channels namespaces itself away from most keys you might use (and you add a custom prefix with the "prefix" option). 2. Yes, as long as both sites have a different prefix setting In both cases I would recommend using separate Redis servers though. They have very low RAM

[Django Channels] Can I use the same redis server as message backend and cache backend the same time?

2017-08-05 Thread CrazyNPC
I have 2 questions. 1.Can I use the same redis server as message backend and cache backend the same time? 2.Can I use the same redis server as message backend for different website they both serve by channels ? -- You received this message because you are subscribed to the Google Groups

Channels vs Django-websocket-redis

2017-08-04 Thread John Byrne
here: http://django-websocket-redis.readthedocs.io/en/latest/running.html#django-with-websockets-for-redis-behind-nginx-using-uwsgi. Or is there still some big difference between that solution and Channels? 2. If #1 above is the main difference, I don't fully understand what the advantage(s)

Re: Channels Redis/channelfull spam without any ws connections.

2017-04-07 Thread Andrew Godwin
The first part is normal Redis traffic for Daphne. It polls Redis in a pretty tight loop in synchronous mode (and this is, annoyingly, faster than the slow poll in Twisted-native mode). The second part is an unrelated error that appears to be from handling a WebSocket that was incoming - is it

Channels Redis/channelfull spam without any ws connections.

2017-04-07 Thread dave . mcallister . dev
> > 1491540549.292837 [0 lua] "LPOP" "asgi:daphne.response.tJbmVMXFGX!" > 1491540549.343335 [0 unix:/var/run/redis/redis.sock] "EVALSHA" > "3640886a0c8901ca9188f5f7a5f7a346145b9c5f" "1" > "asgi:daphne.response.tJbmVMXFGX

Using Redis as Django Cache

2017-04-05 Thread Luvpreet Singh
I am using(trying) redis as a cache to my django app. This is how I am trying to do it. def postview(request): post_list = [] if cache.get("posts") == None: post_list = Post.objects.all() cache.set("posts", post_list, ti

Re: channels/redis exception: TypeError: __init__() got an unexpected keyword argument 'socket_connect_timeout'

2017-04-04 Thread Andrew Godwin
Hi, This is https://github.com/django/asgi_redis/issues/36 - fix is already committed, should be releasing today. Andrew On Mon, Apr 3, 2017 at 3:41 PM, wrote: > Hi all ! > > TypeError is raised when asgi_redis tries to open a connection to redis: > > ``` > Traceback (mos

channels/redis exception: TypeError: __init__() got an unexpected keyword argument 'socket_connect_timeout'

2017-04-03 Thread jpic
Hi all ! TypeError is raised when asgi_redis tries to open a connection to redis: ``` Traceback (most recent call last): File "/code/src/event/log.py", line 39, in emit message(level, source, msg, relations, json, datetime, trace) File "/usr/local/lib/python2.

Re: Using Django Channels to subscribe to a Redis channel

2017-02-23 Thread Jochen Breuer
> a management command that opens a connection to Redis and listens for > messages, and then whenever it gets one, sends the message onto a channel > in the Django channel system. > > You can send to channels from anywhere, so it's just a basic listener with > one line of cha

Re: Using Django Channels to subscribe to a Redis channel

2017-02-22 Thread Andrew Godwin
Hi Jochen, Your problem is that if you want to listen to the pubsub channel you will need a dedicated process to do so, as you can't just poll something like that. Given that restriction, you're going to have to write something like a management command that opens a connection to

Using Django Channels to subscribe to a Redis channel

2017-02-22 Thread Jochen Breuer
Hi! I'm not entirely sure where to start and I hope you can help me. I'm using SaltStack to execute tasks on minions. The results of those jobs (that's the term used in Salt) are then published to a job cache. In this case its a Redis server (Redis Pubsub). Now I would like to

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-06 Thread Nikoleta Misheva
> message.reply_channel.send({'message': "Please wait while we find a >>> user to pair you with"}) >>> >>> >>> >>> >>> неделя, 5 февруари 2017 г., 2:11:46 UTC+2, Andrew Godwin написа: >>>> >>>> If

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Andrew Godwin
аписа: >>> >>> If you ever see "Unexpected response code: 200" it means that something >>> between you and the server doesn't understand WebSockets. Given it's >>> localhost in this case, have you installed channels and make sure it's in >

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Nikoleta Misheva
hat something >> between you and the server doesn't understand WebSockets. Given it's >> localhost in this case, have you installed channels and make sure it's in >> INSTALLED_APPS, then run `runserver`? >> >> Andrew >> >> On Sat, Feb 4, 201

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-05 Thread Nikoleta Misheva
eta Misheva > wrote: > >> When I use django-channels with reconnecting websocket >> <https://github.com/joewalnes/reconnecting-websocket> without redis >> backend and try to connect to ws://localhost:8000/play it returns >> Error during WebSocket handshake: Unexpect

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-04 Thread Nikoleta Misheva
w > > On Sat, Feb 4, 2017 at 3:20 AM, Nikoleta Misheva > wrote: > >> When I use django-channels with reconnecting websocket >> <https://github.com/joewalnes/reconnecting-websocket> without redis >> backend and try to connect to ws://localhost:8000/play it returns &g

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-04 Thread Nikoleta Misheva
>> <https://github.com/joewalnes/reconnecting-websocket> without redis >> backend and try to connect to ws://localhost:8000/play it returns >> Error during WebSocket handshake: Unexpected response code: 200 >> But when I use the redis backend and even tho the workers

Re: Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-04 Thread Andrew Godwin
t, Feb 4, 2017 at 3:20 AM, Nikoleta Misheva wrote: > When I use django-channels with reconnecting websocket > <https://github.com/joewalnes/reconnecting-websocket> without redis > backend and try to connect to ws://localhost:8000/play it returns > Error during WebSocket handshake: Une

Django-channels can't connect to websocket server. But when I am using redis I can't connect to my site at all.

2017-02-04 Thread Nikoleta Misheva
When I use django-channels with reconnecting websocket <https://github.com/joewalnes/reconnecting-websocket> without redis backend and try to connect to ws://localhost:8000/play it returns Error during WebSocket handshake: Unexpected response code: 200 But when I use the redis backend an

Re: Channels - Unable to use redis as sharded cluster

2017-01-16 Thread Andrew Godwin
oduction. > > I have configured redis on AWS Elastic-cache as sharded cluster. > > File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site- > packages/django/core/management/__init__.py", line 354, in > execute_from_command_line > utility.execute() > File

Channels - Unable to use redis as sharded cluster

2017-01-16 Thread Dadaso Zanzane
Hi, I am using django channels for production. I have configured redis on AWS Elastic-cache as sharded cluster. File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py" , line 354, in execute_from_command_line utility.execut

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread GMail
hing. > > Also I have setup the sessions backend via the PyPI package > django-redis-sessions - so it handles the connections for me. I don't know if > it reuses the connections or not - however looking at the monitoriing of the > redis server, it doesn't have that m

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread Andreas Kuhne
ypass the proxy, because if the primary goes down, it won't automatically failover if I don't use it. I could however test to bypass it just to see if that changes anything. Also I have setup the sessions backend via the PyPI package django-redis-sessions - so it handles the connections f

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread GMail
now, not so much :-) > > 2016-12-06 14:35 GMT+01:00 GMail <mailto:robosl...@gmail.com>>: > Hi! > > Do you by any chance have any proxy on top of Redis? Seems like Django has > nothing to do with it, though. > > I don't know anything about dynamodb really, but I think

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread Andreas Kuhne
by any chance have any proxy on top of Redis? Seems like Django has > nothing to do with it, though. > > I don't know anything about dynamodb really, but I think implementing > Django cache with dynamo as backend should work. I've implemented Redis > Cluster cache for my

Re: Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread GMail
Hi! Do you by any chance have any proxy on top of Redis? Seems like Django has nothing to do with it, though. I don't know anything about dynamodb really, but I think implementing Django cache with dynamo as backend should work. I've implemented Redis Cluster cache for my project an

Problem with redis on AWS and transition to dynamodb

2016-12-06 Thread Andreas Kuhne
Hi, We are having a strange problem with our redis elasticache instances on AWS. We have our sessions stored in a redis cluster on AWS. Our webservers sometimes get a: * Error connecting to redis.example.com:6379. timed out * Timeout reading from socket (I haven't included our real domai

Re: Redis error on initial migration

2016-08-27 Thread M Hashmi
uthenticated! > > > > What does the saleor.userprofile.models.User look like? I'd looks like you > are overriding is_anonymous and is_authenticated as methods, rather than > keeping them as attributes or even properties. > > Perhaps you forgot to decorate those methods as

Re: Redis error on initial migration

2016-08-27 Thread James Schneider
ng them as attributes or even properties. Perhaps you forgot to decorate those methods as properties? The Redis reference is simply a suggestion as a method for handling global caching. Is this a 3rd party package? If so perhaps the author's documentation has something about this? -James

Redis error on initial migration

2016-08-27 Thread M Hashmi
authenticated! WARNINGS: saleor.W001: Session caching cannot work with locmem backend HINT: User sessions need to be globally shared, use a cache server like Redis. Any Idea? Regards, Mudassar -- You received this message because you are subscribed to the Google Groups "Djang

Re: a design about cache(using redis) , and some problem about it

2016-04-11 Thread Brendan Quinn
achievement) > but I have to get every student achievement and caculate Top 100, so I use > redis to solve this problem, cache the Top 100 with redis and storage it in > sorted set data type. > > But now, the problem is: if one student achievement is change, should I > update

Re: a design about cache(using redis) , and some problem about it

2016-04-11 Thread Michiel Overtoom
> On 2016-04-10, at 14:04, Xin Liu wrote: > > show top 100 of student's achievement MySQL query to get the 100 students with best achievements: select student_id, student_name, student_score from Students order by student_score desc limit 100 Greetings, -- You received this message

Re: a question about redis cache

2016-04-10 Thread Bob Gailer
me string > score int > > now, I want to show Top 100 of those players by socre. > if only with mysql, I have to caculate Top 100 every time, so I choice Redis to storage Top 100 with sorted set data type. > > But if one of those players' score chaning, what should I do, upda

Re: a question about redis cache

2016-04-10 Thread Avraham Serour
why do you want to use redis for this?, top is trivial to the database On Sun, Apr 10, 2016 at 3:22 PM, Xin Liu wrote: > Let's look at the following scenario: > A website has 1 player, to make question easier, I use mysql storage > player with just one table: "player_t

a design about cache(using redis) , and some problem about it

2016-04-10 Thread Xin Liu
Now, Let's look at the following scenario: A website manage 10,000 students, and show top 100 of student's achievement. I use mysql storage every student personal information(name email sex and achievement) but I have to get every student achievement and caculate Top 100, so I use redi

a question about redis cache

2016-04-10 Thread Xin Liu
ave to caculate Top 100 every time, so I choice Redis to storage Top 100 with sorted set data type. But if one of those players' score chaning, what should I do, update Top 100 every time?? Thanks for you advance -- You received this message because you are subscribed to the Google Groups

Re: Redis cache for Django

2016-03-07 Thread Dheerendra Rathor
I want to use redis as cache backend instead of memcached due to presence of set like data structures and persistent. On Mon, 7 Mar 2016 at 21:10 Avraham Serour wrote: > so do you want to use redis as a backend for cache instead of memcached or > do you want to use redis complex data stru

Re: Redis cache for Django

2016-03-07 Thread Avraham Serour
so do you want to use redis as a backend for cache instead of memcached or do you want to use redis complex data structures in your project? On Mon, Mar 7, 2016 at 4:50 PM, Dheerendra Rathor wrote: > Hey folks, > > This post is for getting opinions > > I want to use Redis cach

Redis cache for Django

2016-03-07 Thread Dheerendra Rathor
Hey folks, This post is for getting opinions I want to use Redis cache for my Django project. I found two apps for that Django Redis (https://github.com/niwinz/django-redis) and Django Redis Cache (https://github.com/sebleier/django-redis-cache). I was going through docs and both looks

Multiple cache definitions all pointing to the same Redis instance. Is this okay?

2015-09-08 Thread EJ
Hi, I'm still learning about Django's caching features and had a question about my specific setup. My app uses a Redis-backed cache to store a variety of different data (including sessions, users, and other stuff). In *settings.py*, I've defined several caches, as shown be

Re: django-cache-machine with Redis

2014-04-24 Thread Ramón Carrillo
Oh, my mistake. I did miss the django-cache-machine part. Anyway, from the sources it seems supported and dependant on django-redis-cache [0,1]. So, you should installed first. According to a commit message [0] and an example [2], this should be in your settings.py: CACHE_MACHINE_USE_REDIS

Re: django-cache-machine with Redis

2014-04-24 Thread Mike Megally
Thanks! I got the redis cache set up. What is worrying me is that django-cache-machine says that you need to use one of its backends for caching and django-cache-machine doesn't come with one for redis. Just memcache and localmem. I'm wondering if its safe to just use the redis

Re: django-cache-machine with Redis

2014-04-24 Thread Ramón Carrillo
Hi Mike, You need a cache backend, you can write it by yourself [0] or use an existing one [1,2] [0] https://docs.djangoproject.com/en/1.6/topics/cache/#using-a-custom-cache-backend [1] https://github.com/niwibe/django-redis [2] https://github.com/sebleier/django-redis-cache On Wed, Apr 23

Re: django-cache-machine with Redis

2014-04-23 Thread Mike Megally
Did you figure this out? I'm currently in the same situation. On Thursday, March 28, 2013 9:56:13 PM UTC-7, Alan Johnson wrote: > > How does one configure this? The documentation only explains how to use > locmem or memcached, and yet the commit logs reference Redis multiple

Django, Flask, and Redis: Sharing User Sessions Between Frameworks

2014-03-21 Thread H Singer
(like Flask) by sharing user sessions with Redis: http://www.toptal.com/django/django-flask-and-redis-sharing-user-sessions-between-frameworks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Using Redis as a DB backend for some models (not a caching backend!)

2014-03-19 Thread Venkatraman S
Good Q. Something along the lines of : https://docs.djangoproject.com/en/dev/topics/db/multi-db/ ? Let us know what you find. On Sat, Mar 15, 2014 at 1:10 AM, Alon Nisser wrote: > Can I use redis as a django database for some of my models? I'm aware (and > using) caching with djang

  1   2   >