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

nixos/redis: disable transparent huge pages (TLP) before starting Redis #67768

Merged
merged 1 commit into from Sep 1, 2019

Conversation

peti
Copy link
Member

@peti peti commented Aug 30, 2019

Redis doesn't cope well with TLP and wants it disabled before the main process is started. I put the shell code into a separate systemd unit (instead of adding it to preStart in the existing one) because I thought it might be useful for other services with the same problem to depend on this unit and re-use it rather than everyone cooking their own soup.

@adisbladis
Copy link
Member

This makes sense for Redis but I don't like that we're setting options with system-wide implications in the redis systemd unit.

@peti
Copy link
Member Author

peti commented Aug 30, 2019

This makes sense for Redis but I don't like that we're setting options with system-wide implications in the redis systemd unit.

What do you propose we do instead?

@adisbladis
Copy link
Member

adisbladis commented Aug 30, 2019

What do you propose we do instead?

I'm not sure what the correct approach is, but what's currently proposed in this PR is counter-intuitive.
At the very least the Redis module should contain a note stating that this is a side-effect of enabling the module though I think that this is also not enough.

@peti
Copy link
Member Author

peti commented Aug 30, 2019

The Redis module should contain a note stating that this is a side-effect of enabling the module.

I extended the documentation of redis.enable accordingly.

@flokli
Copy link
Contributor

flokli commented Aug 31, 2019

@peti at least for me, the redis module is entirely broken, noticed during #67770. PR at #67845.

@peti
Copy link
Member Author

peti commented Aug 31, 2019

@flokli,

at least for me, the redis module is entirely broken

Can you be a little more specific, please?

@flokli
Copy link
Contributor

flokli commented Aug 31, 2019

The service fails to startup, see the gitlab vm log from #67770 (review).

@peti
Copy link
Member Author

peti commented Aug 31, 2019

The service fails to startup, see the gitlab vm log from #67770 (review).

Maybe I am blind or something, but to me eyes that snippet contains zero information about Redis. All I see are log messages from Gitlab, which is not the same thing, no? Anyhow, this is probably not the right place to discuss this topic anyway. #67845 probably is.

@peti peti merged commit 0808f5a into NixOS:master Sep 1, 2019
@peti peti deleted the t/redis branch September 1, 2019 06:49
flokli added a commit to flokli/nixpkgs that referenced this pull request Sep 1, 2019
@flokli
Copy link
Contributor

flokli commented Sep 1, 2019

I'd really have preferred to have seen the fixes added inside the PR.

Adding more commits disconnected to the PR makes things much less understandable, especially if pushed to master without a reference in the commit message.

I added the small cosmetic changes, and included the release notes changes into #67845.

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

Successfully merging this pull request may close these issues.

None yet

3 participants