How can we install queue driver?
murdocklawless the simplest is the database queue driver, you see all extensions related to queue on extiverse by searching for them: https://extiverse.com/?filter%5Bq%5D=queue
I don't understand exactly how we should use it.
I installed Redis on the server. I installed the plugin, then installed the GB Redis Setup plugin to queue it.
But I don't know how to adjust the settings.
I don't know how to adjust Elastic Search settings either.
Could you help?
Alshain I don't know how to adjust Elastic Search settings either.
Install the elastic extension, enable it in the admin area and check the settings of that extension. What exactly are you missing?
elastic endpoint is 127.0.0.1
index : ?
What will we write in these sections?
Alshain my bad:
endpoint is http://localhost:9200
username/password are either the admin user or another one created for this index
index can be set to flarum or something relating to the community you run, it is like a database to MySQL
luceos I'm trying right now. Thank you.
Elasticsearch works when I experiment with curl on putty.
However, when I make the following settings, the search section returns empty.
I don't fully understand the problem 🙁
Can you check it when it's available?
Alshain you need to index existing posts first: php flarum blomstra:search:index --recreate
php flarum blomstra:search:index --recreate
Sorry I missed the second screenshot
luceos I did it.
Alshain yeah I missed the second screenshot. Are you sure the queue worker is running? The GB redis extension has very limited information in terms of set up, honestly it lacks in that area. Once you set up that extension try php flarum and see if you can create a daemon for the queue worker.
Alternatively use the database queue for now (https://discuss.flarum.org/d/28151) or the package the GB redis extension is based on, it requires you to make some changes to your extend.php as it has no UX (https://discuss.flarum.org/d/21873-redis-sessions-cache-queues).
luceos Actually I wanted to install blomstra/flarum-redis first but got an error.
Then I installed the GB Redis plugin, but its settings are like this.
Is there anything else I should check?
try running php flarum queue:work, if that works you need to daemonize that. For instance with supervisor, see: https://laravel.com/docs/9.x/queues#supervisor-configuration
php flarum queue:work
luceos Is it normal to be like this?
luceos if that works you need to daemonize that. For instance with supervisor, see: https://laravel.com/docs/9.x/queues#supervisor-configuration
The process you manually started, needs to run continuously.
Alshain yes that's great! If the task is processed properly it will say "Processed" in green. Otherwise it will be in red (I think).
Something is starting to happen though, I hope it works 🙂
Alshain make sure to create a daemon though so that the process keeps running with you needing to have that window open.
luceos I'm not sure exactly what you mean, sorry 🙁
Can't I do this job by opening 2 putty?