-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
nixos/unifi: Add the ability to specify extra JVM options #266528
Conversation
9c96d2f
to
bde73ef
Compare
Hi @wegank by chance would you be interested in having a look at this? Forgive me if there's other protocol; I haven't committed to nixpkgs before. No rush. |
This removes "with lib", which advances NixOS#208242 a bit, and cleans up a few formatting nits found by nixfmt.
There's no functionality change here, but this makes it a bit more convenient to add more args.
bde73ef
to
7329694
Compare
This can be useful for adding extra logging, tweaking garbage collector parameters, and for using JMX to monitor the JVM.
7329694
to
07828dc
Compare
Thanks very much for the review/approval. Does someone come by and merge this at some point? Sorry, I'm still new at this. |
Hi @wegank or anyone else, do I need to do anything else for this to get merged? |
I'll merge it. Would you also like to have a look at #195448 (comment), as I assume you are an active UniFi user? It would be nice if we could upgrade to MongoDB 5.0 for the upcoming release. |
Description of changes
The first two commits do some throat clearing, just cleaning up some formatting and making the command line args a list instead of a big string. The third commit gives me the ability to give the JVM zany options so I can watch its allocator and GC behavior, or monitor it with Prometheus using something like jmx_exporter.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)