public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Dominik Csapak <d.csapak@proxmox.com>,
	Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox-backup 2/2] traffic-control: add debug log when we found a matching rule
Date: Fri, 4 Feb 2022 11:21:11 +0100	[thread overview]
Message-ID: <11a9c61d-839b-f4c0-0c25-b438a23bc67e@proxmox.com> (raw)
In-Reply-To: <06030899-49e4-7ad0-ea70-8c2bf2dd2dd7@proxmox.com>

On 04.02.22 11:09, Dominik Csapak wrote:
> On 2/4/22 11:05, Thomas Lamprecht wrote:
>> On 04.02.22 10:12, Dominik Csapak wrote:
>>> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
>>> ---
>>> optional, at least one user in the forum has a problem with traffic
>>> control, this could help debug that in the future...
>>
>> Above needs to be in the commit message and actually linking to the relevant
>> forum thread.
>>
>> in general sure, but I dislike the direction of the approach, as its again
>> moving in the same direction as e.g., pmxcfs, a single boolean flag for all
>> or nothing, which in practice will soon mean that's rather useless as its
>> spamming so much stuff that relevant things get drowned even for experienced
>> users.
>>
>> More fine grained approach it both, the verbosity and the topic axis would
>> be much nicer, especially the latter as then a user could only enable
>> traffic-control related logs.
>>
>> But just mentioning as this is a major pain point in pmxcfs that I get "hurt"
>> by frequently..
> 
> makes total sense. did you already imagine any way to enable this?

I haven't thought out any specifics for our rust env yet, fwiw log provides a target
and the module-path in the Record metadata, either or both could be used for employing
some filtering.

FWIW, we already depend transitively on the `tracing` crate, which could be also
leveraged for a use case like this. Maintaining that is some work, IME having, somewhat
thought out, tracing integrated in a system can make debugging and the like multiple
orders of magnitude easier and faster.

> could we simply have some 'sections' (like tc,connections,etc.)
> and enable them like this:

I would imagine that sections could be seen as what I called topics, so yes,
something like that.

> PROXMOX_DEBUG=tc=debug,conn=info,foo=none
> 
> or should we avoid the environment variable at all, and put it in
> the node config?
> 

would be an option, but IMO not too relevant where the current level comes from, I'd
figure that once we decide on a basic direction of how/what the setting source should
be rather on the easy side.




  reply	other threads:[~2022-02-04 10:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04  9:12 [pbs-devel] [PATCH proxmox-backup 1/2] use PROXMOX_DEBUG env variable to control loglevel Dominik Csapak
2022-02-04  9:12 ` [pbs-devel] [PATCH proxmox-backup 2/2] traffic-control: add debug log when we found a matching rule Dominik Csapak
2022-02-04 10:05   ` Thomas Lamprecht
2022-02-04 10:09     ` Dominik Csapak
2022-02-04 10:21       ` Thomas Lamprecht [this message]
2022-02-04 10:22 ` [pbs-devel] applied: [PATCH proxmox-backup 1/2] use PROXMOX_DEBUG env variable to control loglevel Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11a9c61d-839b-f4c0-0c25-b438a23bc67e@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=d.csapak@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal