-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin ready to work with clusters? #66
Comments
Any chance you could try to patch the plugin and issue a PR? In case there is any experience with PHP. |
@tsteur I did, but I don't have any experience in PHP. My fork is actually working, but this is nothing which should be merged into an official repo ;) |
@Tyrdall Are you on a Kubernetes / Swarm cluster ? |
@crazy-max I'm currently working on a Kubernetes cluster, but I was referring to: https://redis.io/topics/cluster-spec In my amateurish custom solution I replaced Reference: https://github.com/phpredis/phpredis/blob/develop/cluster.markdown#readme |
I reckon this could be added as a feature similar to sentinel in https://github.com/matomo-org/plugin-QueuedTracking/blob/3.1.0/SystemSettings.php#L61. So someone could enable Cluster via a setting and then define multiple hosts. If enabled, we would use I reckon we would recommend to configure timeout etc via php.ini if someone needs that:
Instead of having to configure the hosts via the system settings we could also let users define it via php.ini like this:
and then there would be only a system setting to enter the cluster name, eg |
Could you please post the changed you did, to make this work with redis cluster ? I'm having a hard time to understand how this can be adopted for redis cluster Thanks |
@toredash I actually don't know what I did exactly. I assume I replaced the https://github.com/phpredis/phpredis/blob/develop/cluster.markdown#readme |
I looked at your forked repo and figured it out. For others, this is the changes I did to enable Redis Cluster support:
|
Unfortunately, the workaround provided by @toredash doesn't work for me. The following error is returned when executing console queuedtracking:process Can we get an update for the plugin to support Redis Cluster? |
If someone has some PHP skills and could add this feature I'd be happy to review. Unfortunately I don't have any experience with RedisCluster myself and don't have one running either. |
I've tested your plugin using a standalone server (works!) and a cluster. Unfortunately your plugin doesn't seem to be able to handle a cluster configuration.
Output of
./console queuedtracking:test
:The text was updated successfully, but these errors were encountered: