Skip to content
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

Ajoute une tache d'analyse des clés Redis #3756

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

LucienMLD
Copy link
Collaborator

No description provided.

@LucienMLD LucienMLD requested a review from clairezed January 6, 2025 16:30
@LucienMLD
Copy link
Collaborator Author

@clairezed J'ai isolé la tache d'analyse, codeclimate n’est pas content encore une fois

Copy link
Collaborator

@clairezed clairezed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est très cool cet outil ! Testé en staging, y'a du résultat, par contre pas sûre de comment les analyser :

=== Redis Analysis Report ===
Total keys analyzed: 2744
Keys with expired TTL: 1905
Keys idle > 7 days: 2210

Top key patterns:
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/19628/matches/query-*/needs/query-*: 9 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/13925/matches/query-*/needs/query-*: 7 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/13801/matches/query-*/needs/query-*: 7 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/12084/matches/query-*/needs/query-*: 7 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/9643/matches/query-*/needs/query-*: 7 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/20867/matches/query-*/needs/query-*: 6 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/18054/matches/query-*/needs/query-*: 6 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/9209/matches/query-*/needs/query-*: 6 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/3391/matches/query-*/needs/query-*: 6 keys
  views/reminders/experts/_expert:*f907d063bbb91b1d95427f36690c86a/received_matches/experts/21135/matches/query-*/needs/query-*: 5 keys

@LucienMLD
Copy link
Collaborator Author

LucienMLD commented Jan 14, 2025

Je pense que ce qu'on doit regarder en priorité ce sont les clés Keys with expired TTL: 1905 qui ne sont plus utilisées mais stockées quand même

@LucienMLD
Copy link
Collaborator Author

  • Ajouter l'analyse des clés expirées
  • extraire les paternes de clés en mettant des X à la place des numéros

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants