What is the advantage over a normal database? Or what exactly is Redis doing?
GB Redis Setup
- Edited
How does one set these environment variables for Flarum? (there are thousands of roads that lead to Rome, but knowing a well traveled path over figuring stuff out myself always has my preference. (I would suggest adding this (or at least a link to documentation) to the package README as it is (from what I've seen with my limited experience) fairly non-standard)
I would like to change the queue database number, until now I used the default values, how can I change this environment variable?
I have read this:
For this to work, environment variables have to be set on your host:
In my case I would have to change REDIS_DATABASE_QUEUE
, but I don't understand exactly where I should change/put it.
Darkle I'm not sure if I understand you question correctly, but from what I understand you're struggling to understand how to set any ENV var. Hopefully this article will enlighten you.
iPurpl3x Now I understood the concept, that's why I didn't explain myself too well in the question, it was for lack of knowledge I had no idea how ENV var worked in Linux, I thought it was something specific for this extension, another thing learned, thanks!
luceos That's very interesting, so I wouldn't forget/lose the configuration if I migrate server
So it would be something like this in the config.php
?
<?php return array (
// all the flarum stuff
);
REDIS_DATABASE_QUEUE=4
- Edited
Your code will trigger a fatal error.
<?php
putenv("REDIS_DATABASE_QUEUE=4");
return [];
ps. Understand that GB redis setup is an extension wrapped around blomstra/flarum-redis. If you want to force the connection setting, you'd might as well use that package directly. See https://github.com/blomstra/flarum-redis#set-up
Hello, after successfully installing the plugin, notifications do not work when the plugin is active. If I turn off the plugin, the notifications work successfully. Will there be an update for this issue? I have disabled the plugin for now.
- Edited
REDIS_HOST=null # Required
REDIS_PORT=6379 # Optional, else uses default
REDIS_PASSWORD=null # Required, can be an empty string
REDIS_DATABASE_CACHE=1 # Optional, else uses default
REDIS_DATABASE_QUEUE=2 # Optional, else uses default
REDIS_DATABASE_SESSION=3 # Optional, else uses default
Where should I add it?
luceos Please help me.
Geraldlzc this extension only setups the Redis and that sometimes fail to do its job. you should use blomstra Redis https://discuss.flarum.org/d/21873-redis-sessions-cache-queues
@"[deleted]"#p171743 yes, sorry. We tried the blomstra redis library and this works fine without issue, so I'm no longer using the glowing blue extension, in favour of this one.
1.2.0
- Use webpack 5
- Require Flarum 1.2.0
Installation
composer require glowingblue/redis-setup:"*"
So I’m running a single Redis instance among three sites and have different databases setup in the config file but on two of the sites it’s not working correctly. Main site is using 1-3 like in the setup and the second site is using 4-6 and the third is 7-9 but the two other sites that use 4-9 aren’t working correctly. Not sure what’s going on. I have multiple supervisor files pointing to the directory of all three sites and all three are showing running but again nothing is working as it should. What could I be doing wrong?
So no one has any insight into my issue above?
ernestdefoe Please note that glowingblue/redis-setup
is just a wrapper of blomstra/flarum-redis
. If I understand you correctly, your issue is not related to the features which glowingblue/redis-setup
add, but to Redis and blomstra/flarum-redis
itself. Therefore, you might be more lucky to find answers in https://discuss.flarum.org/d/21873-redis-sessions-cache-queues.
In any case, it's difficult to tell what the issue is from your description. I would suggest looking at the official Flarum troubleshooting guide https://docs.flarum.org/troubleshoot/ and see if it helps.
When using GB Redis Setup plugin, if "Redis Message Queue" is enabled, only the test emails will be sent, other situation (e.g. registration) not work. After disabled, everything works right.
How should this be handled please, has there ever been a similar situation. Thanks a lot for your time. @luceos
woolio Were you able to debug your issues in the meantime?
- Edited
Already processed