mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4652] [Feature]: solving the problem of not syncing usage #3204
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
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?
Before submitting