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

Set a custom file name for pfring_zc_set_proc_stats #627

Open
EaseTheWorld opened this issue Aug 19, 2020 · 3 comments
Open

Set a custom file name for pfring_zc_set_proc_stats #627

EaseTheWorld opened this issue Aug 19, 2020 · 3 comments

Comments

@EaseTheWorld
Copy link
Contributor

Well, this is not an issue, more like suggestion.
When I use zbalance_ipc, I want to show its stats.
But pfring_zc_set_proc_stats() saves stat file 'pid'-none.#### which is not predictable.
I think this is for unique filename but cluster_id itself is not enough for uniqueness?
or user-specified name would be possible as well.
(I thought pfring_zc_set_app_name is for this but it's not. what is app_name for?)

@cardigliano
Copy link
Member

pfring_zc_set_app_name is used to set the application name in the /proc/net/pf_ring/ file.
In essence you want to create /proc/net/pf_ring/stats/ with a custom name set by the application.

@EaseTheWorld
Copy link
Contributor Author

EaseTheWorld commented Aug 19, 2020

Yes. custom name(given as zbalance_ipc args) or cluser_num would be useful.
Until yesterday, I didn't know stat file was there and even zbalance_ipc itself doesn't know the filename either.

@cardigliano cardigliano changed the title pfring_zc_set_proc_stats()'s filename could be more predictable. Set a custom file name for pfring_zc_set_proc_stats Aug 24, 2020
@zinosat
Copy link
Contributor

zinosat commented Oct 2, 2020

this could be an interesting enhancement applicable to pfring_set_application_stats() too

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

No branches or pull requests

3 participants