Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

QueuedTracking setup on multiple servers (new guide)

Đang mở
#134 32 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng cách xác định điểm bắt đầu của FAQ hoặc tài liệu về QueuedTracking và xem lại các ghi chú thiết lập trong issue này. Ghi lại các lệnh cron cho nhiều máy chủ, việc phân công queue, lệnh giám sát, hướng dẫn cho worker và cấu hình thông báo được nêu ở đây. Công việc được xem là hoàn tất khi hướng dẫn mới được đăng tại vị trí FAQ hoặc tài liệu phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Here are some notes I wrote earlier and thought it would be useful to put in the FAQ maybe?

How do I setup QueuedTracking on multiple tracking servers?

Say you have

  • 4 servers,
  • and setup 8 workers in QueuedTracking,
  • and disabled the option in the settings to process the queue during the tracking request,

then on each of your 4 frontend servers, you need to:

  • setup 2 crontab to run each minute and which execute the command:
    ./console queuedtracking:process --queue-id=X

Where X is the queue ID. Each server handles 2 queues. So the 4 servers handle the 8 queues.

Queue ID starts at 0.

Notes:

  • execute the command ./console queuedtracking:monitor to track the state of the queue
  • When using multiple workers it might be worth to lower the number of "Number of requests to process" to eg 15 in "Plugin Settings". By default 25 requests are inserted in one step by using transactions. This means different workers might have to wait for each other. By lowering that number each worker will block the DB for less time.
  • you can optionally receive an email when the number of requests queued in a single queue reaches a configured threshold. You can configure this in your config/config.ini.php config file using the following configuration:
[QueuedTracking]
notify_queue_threshold_emails[] = [email protected]
notify_queue_threshold_single_queue = 250000 
Ngôn ngữ chính
PHP
Star
87
Fork
42
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của matomo-org/plugin-QueuedTracking

Tất cả issue của matomo-org/plugin-QueuedTracking

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.