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

release-21.1: util/log,server/debug: fixes to logging and the logspy api endpoint #11048

Closed
mikeCRL opened this issue Aug 13, 2021 · 1 comment

Comments

@mikeCRL
Copy link
Contributor

mikeCRL commented Aug 13, 2021

cockroachdb/cockroach#66328 --- Release note (api change): The /debug/logspy API does not any more enable maximum logging verbosity automatically. To change the verbosity, use the new /debug/vmodule endpoint or pass the &vmodule= query parameter to the /debug/logspy endpoint. For example, suppose you wish to run a 20s logspy session: - Before: curl 'https://.../debug/logspy?duration=20s&...' - Now: curl 'https://.../debug/logspy?duration=20s&vmodule=...' OR curl 'https://.../debug/vmodule?duration=22s&vmodule=...' curl 'https://.../debug/logspy?duration=20s' As for the regular vmodule command-line flag, the maximum verbosity across all the source code can be selected with the pattern *=4. Note: at most one in-flight HTTP API request is allowed to modify the vmodule parameter. This maintain the invariant that the configuration restored at the end of each request is the same as when the request started. Release note (api change): The new /debug/vmodule API makes it possible for an operator to configure the logging verbosity in a similar way as the SQL built-in function crdb_internal.set_vmodule(), or to query the current configuration as in crdb_internal.get_vmodule(). Additionally, any configuration change performed via this API can be automatically reverted after a configurable delay. The API forms are: - /debug/vmodule - retrieve the current configuration. - /debug/vmodule?set=[vmodule config]&duration=[duration] - change the configuration to [vmodule config] . The previous configuration at the time the /debug/vmodule request started is restored after [duration]. This duration, if not specified, defaults to twice the default duration of a logspy request (currently, the logspy default duration is 5s, so the vmodule default duration is 10s). If the duration is zero or negative, the previous configuration is never restored.

@mikeCRL
Copy link
Contributor Author

mikeCRL commented Aug 15, 2021

Created during a test of an issue-creation script. Issue is not needed. Closing.

@mikeCRL mikeCRL closed this as completed Aug 15, 2021
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

1 participant