[GH-ISSUE #4652] [Feature]: solving the problem of not syncing usage #3204

Closed
opened 2026-10-31 20:30:46 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @NewMreza on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4652

if Mr. Sanaei or other people who can fix this problem read this, i just am here with an algorithm:

All servers (including Mother server and Node ones) have two variables:

  1. unsynced usage
  2. used data since last syncing(for examle variable x)
    after syncing cron is started, usages of both Mother and Node Servers are added to unsynced usage of client.
    client usage will be stored in variable x
    after syncing cron is done, all x variables will become x=0
    syncing cron time can be custom, people who use 3x-ui can choose the cron time based on their user count(for example, 100 clients on server and nodes make 100 summing, which is not that heavy for even 1 core servers. so 3x-ui users can set it to 1 minute sync. but if someone has 1000 clients, although they surely have more that 1 core server, they can set syncing on 5 minutes)
    plus, it would be so perfect if the syncing job could be done by percentage. this is another idea. mother server syncing usage can be custom, for example:
    3x-ui user can set "maximum of sync 50 clients" per syncing cron. this can be mixed with custom syncing time idea

Describe the solution you'd like

fixing syncing problem + some new features

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

Statistics / traffic counters, Multi-node (sub-nodes)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @NewMreza on GitHub (May 29, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4652 ### Is your feature request related to a problem? if Mr. Sanaei or other people who can fix this problem read this, i just am here with an algorithm: All servers (including Mother server and Node ones) have two variables: 1. unsynced usage 2. used data since last syncing(for examle variable x) after syncing cron is started, usages of both Mother and Node Servers are added to unsynced usage of client. client usage will be stored in variable x after syncing cron is done, all x variables will become x=0 syncing cron time can be custom, people who use 3x-ui can choose the cron time based on their user count(for example, 100 clients on server and nodes make 100 summing, which is not that heavy for even 1 core servers. so 3x-ui users can set it to 1 minute sync. but if someone has 1000 clients, although they surely have more that 1 core server, they can set syncing on 5 minutes) plus, it would be so perfect if the syncing job could be done by percentage. this is another idea. mother server syncing usage can be custom, for example: 3x-ui user can set "maximum of sync 50 clients" per syncing cron. this can be mixed with custom syncing time idea ### Describe the solution you'd like fixing syncing problem + some new features ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? Statistics / traffic counters, Multi-node (sub-nodes) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:30:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3204
No description provided.