matomo-org / matomo-org/plugin-QueuedTracking

Use persistent connections to redis instance

Open
#55 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
87
Forks
41
Avg merge
2d 18h
Merged PRs (30d)
7

Description

Please make an option to use persistent connection to redis: https://github.com/phpredis/phpredis#pconnect-popen .

It's much faster then raw "connect" (and sometimes then unix socket!) and the only change to implement is to change "connect" to "pconnect" in your code when connecting to redis instance.

We've done it in our installation when we begin to get too many redis connections. Everything goes fine.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Redis connection entry point in the plugin and read the linked phpredis persistent-connection documentation. Determine how an option should select persistent connections instead of regular connections, then verify that the plugin can still connect normally and that the option uses pconnect or popen as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, redis
Domain
backend, databases
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.