Skip to content

Increase rate limiting in journald.conf - #3753

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
soltysh:issue12558
Sep 20, 2017
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
soltysh:issue12558

Conversation

@soltysh

@soltysh soltysh commented Mar 23, 2017

Copy link
Copy Markdown

@sdodson ptal, this is to address issues from openshift/origin#12558

@smarterclayton @stevekuznetsov fyi

@sdodson

sdodson commented Mar 23, 2017

Copy link
Copy Markdown
Member

Comment thread roles/openshift_master/tasks/main.yml Outdated
line: "{{ item.line }}"
with_items:
- { regexp: '^.*RateLimitInterval.*$', line: 'RateLimitInterval=1s' }
- { regexp: '^.*RateLimitBurst.*$', line: 'RateLimitBurst=10000' }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- { regexp: '^RateLimitBurst=.*$', line: 'RateLimitBurst=10000' }

would be more conservative?

What if the existing values were already higher than the ones we're setting? This could have an unintended effect of doing the opposite of what the task name says.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'^RateLimitBurst=.*$'

Isn't good enough, because that line might be commented out, but in that case I could add \#?. The remaining part is a good point, lemme think about the right approach to fix it.

@sdodson

sdodson commented Mar 23, 2017

Copy link
Copy Markdown
Member

So, normal logging default is 33/sec per service. We're cramming up to 1000 pods + node + docker into a single service. So should we go to 33333/sec to provide the same level of service that default logging would provide if they were all split out?

@soltysh

soltysh commented Mar 23, 2017

Copy link
Copy Markdown
Author

I've made the regexp more strict and fixed the travis failure. I'm not sure about that 33333/sec. Let's start with this setting and we'll increase more if needed. My ansible-foo isn't good enough to do the conditional change, sorry @rhcarvalho. I hope other stuff can be fixed as a followup.

@smarterclayton

Copy link
Copy Markdown
Contributor

Here's my concern. ANY global rate limiting potentially breaks end user apps that expect to get logs. NO global rate limiting potentially breaks the node. Administrators need to make a choice.

The correct behavior would be that rate limiting is not global - journald is not in the correct position to determine rate limits, nor should logging from one container have anything to do with logging in another container.

The upstream Kubernetes direction on this is pretty clear - each container is going to log to its own rate limited devices. That means separation of responsibilities from host logging - containers shouldn't be able to blow up host logs and vice versa, nor should containers be able to DOS other containers.

We need to get to a place where host logging != container logging as fast as possible. We need the rate limits on the containers to be separate from the host rate limits. We still need limits - but the limit should penalize the app, not vice versa.

@smarterclayton

Copy link
Copy Markdown
Contributor

Since rate limits are per service, the best we can do is increase Docker's rate limit a reasonable multiple of the expected volume.

@smarterclayton

Copy link
Copy Markdown
Contributor

We need to get the containers team and the logging team to present a unified plan forward here - @jcantrill and @rhatdan are the ones who can help coordinate.

Comment thread roles/openshift_master/tasks/main.yml Outdated
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
with_items:
- { regexp: '^#?RateLimitInterval=.*$', line: 'RateLimitInterval=1s' }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we also using persistent volumes? We have the potential to rapidly grow /run/log/journal to the default 4GB limit. May not be desirable.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soltysh, any thoughts here?

@portante

Copy link
Copy Markdown
Contributor

There are only so many pipes for data to flow on a box. At some point, no matter how isolated the rate-limits may be for an app, its logging rate, or the combined logging rate of all the apps, can affect the system. Having individual rates is great, but it is going to be very hard to get that balance right to cover most situations so that host logging is not affected by app logging.

Before that, though, don't we need to stop using /run/log/journal (tmpfs) and start using /var/log/journal (on-disk)?

With a configuration that properly curates the on-disk journal files to a reasonable size and retention policy, using on-disk storage for logs will prevent large memory use of /run, while giving us the ability to review the host logs for debugging on a crash; something like:

[Journal]
Storage=permanent
Compress=yes

# journald will fsync() once a second to persist logs to disk
SyncIntervalSec=1s

# applies to each logging entity, not to all logs flowing through journald
RateLimitInterval=1s
RateLimitBurst=40000

# Only keep 4GB of logs max
SystemMaxUse=4G
# ... but only if there is 40 GB of free disk space
SystemKeepFree=40G
# Store journal files up to 10 MB each so that when rotated, we don't lose too big of a time period of logs.
SystemMaxFileSize=10M

@smarterclayton

smarterclayton commented Mar 24, 2017 via email

Copy link
Copy Markdown
Contributor

@portante

Copy link
Copy Markdown
Contributor

Regarding quota per pod, agreed.

Let's solve the logging to disk first. Perhaps see if could have two instances of journald running, one that listens to /dev/log for node level logs, and another that the container daemon connects logs to from apps would be a start.

If the kubernetes logging path would consider including the metadata lost by NOT using journald, that might be sufficient.

@portante

Copy link
Copy Markdown
Contributor

And, when we start persisting logs to disk via journald, we should turn off rsyslog if it is on and persisting logs to disk as well.

@richm

richm commented Mar 24, 2017

Copy link
Copy Markdown
Contributor

And, when we start persisting logs to disk via journald, we should turn off rsyslog if it is on and persisting logs to disk as well.

If so, will need to ensure that fluentd is configured to use journald as input, because no /var/log/messages any more. Also want to make sure that customer is aware that other services provided by rsyslog by default will no longer be available:

# Log all the mail messages in one place.
mail.*                                                  -/var/log/maillog
# Log cron stuff
cron.*                                                  /var/log/cron
# Everybody gets emergency messages
*.emerg                                                 :omusrmsg:*
# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler
# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log
# Log cloudinit generated log messages to file
:programname, isequal, "cloud-init" /var/log/cloud-init.log

@bogdando

bogdando commented Apr 21, 2017 •

Copy link
Copy Markdown
Contributor

The alternative fix for the persistent logs issue could be never log to files or journald from containers and disable it for docker daemon as well. Instead, follow 12factor apps best practices:

  • only log to stdout/stderr from containers. It implies there is only one subject of interests runs inside
    of each container and we don't want other logs from other background processes, if any (like dumb-init).
  • ship and persist logs with fluentd/ES/prometeus or the like. I know there is a plenty of solutions, and written guides as well, for self-hosted logs collecting/processing stacks in Kubernetes ecosystem.

This would remove a lots of "old school issues" and moving parts, like rate limiting, rotation et al.

@rhcarvalho

Copy link
Copy Markdown
Contributor

only log to stdout/stderr from containers.

IIUC, this is already the case. Contained processes write to stdout/stderr, but then we need to do something with those streams, that's where journald or another solution plugs in.

@portante

Copy link
Copy Markdown
Contributor

@bogdando, does factor 11 of the 12 Factor App say an app should only write to stdout/stderr? Actually, where does it mention stderr?

It seems that the 12 Factor App is about keeping the app writers concerns separate from the scaffolding of the environment in which the app runs. Would you agree?

journald is just an entity that the docker deamon can be configured to send the stdout/stderr stream of an app to, where the app has no knowledge of or concern about journald or how it operates, which seems to fulfill the spirit of the 11th factor.

The 11th Factor seems to acknowledge that an app has other events streams flowing from it in production environments, as it mentions "In staging or production deploys, each process’ stream will be captured by the execution environment, collated together with all other streams from the app, and routed to one or more final destinations for viewing and long-term archival."

So it does not seem the 11th Factors directs us in a different path here.

Finally, if we don't use docker's journald driver, then we need to use the json-file driver, which we believe has its own set of scaling issues.

It would seem our best bet is to invest in journald to address the scaling we need.

Comment thread roles/openshift_master/tasks/main.yml Outdated
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
with_items:
- { regexp: '^#?RateLimitInterval=.*$', line: 'RateLimitInterval=1s' }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@soltysh, any thoughts here?

Comment thread roles/openshift_master/tasks/main.yml Outdated
line: "{{ item.line }}"
with_items:
- { regexp: '^#?RateLimitInterval=.*$', line: 'RateLimitInterval=1s' }
- { regexp: '^#?RateLimitBurst=.*$', line: 'RateLimitBurst=10000' }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, this hardcodes the rate we want to be 10,000 log entries a second. It would be best if the user could deploy and update this setting with a value they can configure to accommodate their needs. In the future 10,000/s might be too small, while in other scenarios 10,000/s might be too large.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any problems making it more configurable, I've opened this PR to have a discussion happening, since I've stumbled on this problem.

@bogdando

Copy link
Copy Markdown
Contributor

@portante @rhcarvalho You're right, either journald, or syslog, or fluentd et al for docker daemon would 100% fit the manifesto for its workloads: "A twelve-factor app never concerns itself with routing or storage of its output stream. It should not attempt to write to or manage logfiles. Instead, each running process writes its event stream, unbuffered, to stdout".

I was thinking of the docker daemon as a part of the application stack. Because of the shared local host placement with its workloads, it can not be scaled well, and the rate limiting issue confirms that, I'm afraid. The next issue to arise shortly after that might stand for cgroups not handling the limits, and more fun. So my previous comment was badly written, perhaps I should've written it as: Only non local to workloads logs processing solutions would make it to scale well and journald is not the case, unless it can be configured as a dummy logs shipper, like if being told: "please use no rate limiting, no logs rotation, no persistence, nothing, just ship the logs to a given network endpoint."

@smarterclayton

Copy link
Copy Markdown
Contributor

I'd like an option to disable rate limiting on the docker daemon. We would use that in specific clusters. I'm fine with higher limits, but the disable is what we need right now to get back to working.

I'd like a fix for this in soon so we can kill these flakes. Having the option to selectively disable rate limiting on docker journald is the minimum requirement to address openshift/origin-ci-tool#133

@smarterclayton

Copy link
Copy Markdown
Contributor

Let's push this forward so we can turn it on in CI

@portante

Copy link
Copy Markdown
Contributor

What are we going to do about the persistence question? /run/log/journal can blow up in its memory usage under certain conditions.

@jcantrill

Copy link
Copy Markdown
Contributor

cc @pweil-

@jcantrill

Copy link
Copy Markdown
Contributor

@portante With regards to storage, are we not at the mercy of what's available on disk for the host? I don't believe journal runs in a container so there is no persistent volume to be configured.

@jcantrill

Copy link
Copy Markdown
Contributor

aos-ci-test

@richm

richm commented Aug 24, 2017

Copy link
Copy Markdown
Contributor

@jcantrill yes, we are at the mercy of what's available on the host. When persistence is enabled in journald, it will by default use /var/log/journal. Note that the /var or /var/log file systems usually have a lot of space dedicated to them, much more than the amount of RAM on the system (which is what /run/log/journal uses).

In addition, see man journald.conf(5), specifically the discussion around SystemMaxUse= and RuntimeMaxUse= and SystemKeepFree= and RuntimeKeepFree= - an excerpt:

...
The first pair defaults to 10% and the second to 15% of the size of
the respective file system, but each value is capped to 4G. If the
file system is nearly full and either SystemKeepFree= or
RuntimeKeepFree= are violated when systemd-journald is started, the
limit will be raised to the percentage that is actually free.
...

@jcantrill

Copy link
Copy Markdown
Contributor

@richm Are you saying we still have open questions regarding persistence or can we merge this PR?

@openshift-bot

Copy link
Copy Markdown

success: "aos-ci-jenkins/OS_3.6_NOT_containerized, aos-ci-jenkins/OS_3.6_NOT_containerized_e2e_tests" for f827350 (logs)

@openshift-bot

Copy link
Copy Markdown

success: "aos-ci-jenkins/OS_3.6_containerized, aos-ci-jenkins/OS_3.6_containerized_e2e_tests" for f827350 (logs)

@sdodson

sdodson commented Sep 13, 2017

Copy link
Copy Markdown
Member

[test]

@openshift-bot

Copy link
Copy Markdown

Evaluated for openshift ansible test up to f827350

@openshift-bot

Copy link
Copy Markdown

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_openshift_ansible/662/) (Base Commit: 581d5d2) (PR Branch Commit: f827350)

@soltysh

soltysh commented Sep 14, 2017

Copy link
Copy Markdown
Author

The failures in fedora/25/atomic look like flakes on k8s side of things. @sdodson I think we can safely merge this in, wdyt?

@sdodson

sdodson commented Sep 14, 2017

Copy link
Copy Markdown
Member

Yes, but since this isn't addressing a blocker bug I'd prefer waiting until Monday when the branch opens up.

@soltysh

soltysh commented Sep 15, 2017

Copy link
Copy Markdown
Author

@sdodson it is addressing a significant flake to our merge queue, where we fail because of missing data in journald. @smarterclayton any objections for merging this asap?

@soltysh

soltysh commented Sep 15, 2017

Copy link
Copy Markdown
Author

openshift/origin#14785 for reference

@sdodson

sdodson commented Sep 15, 2017

Copy link
Copy Markdown
Member

/test

@soltysh

soltysh commented Sep 18, 2017

Copy link
Copy Markdown
Author

The error doesn't look like it's related to this PR. It was reported long time ago (openshift/origin#9624 and openshift/origin#7291) and closed due to inactivity. So it might be F25 specific issue.

@sdodson

sdodson commented Sep 18, 2017

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2017
@sdodson

sdodson commented Sep 19, 2017

Copy link
Copy Markdown
Member

/test all

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

/test all [submit-queue is verifying that this PR is safe to merge]

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

Automatic merge from submit-queue

@openshift-merge-robot
openshift-merge-robot merged commit af580f8 into openshift:master Sep 20, 2017
@soltysh
soltysh deleted the issue12558 branch September 20, 2017 14:02
@sdodson

sdodson commented Sep 20, 2017

Copy link
Copy Markdown
Member

The first time running the install since this merged it failed to restart journald on my host and I got the following in my logs. By the time I looked at the host it had started successfully but the playbook run failed.

Sep 20 16:17:13 ose3-master ansible-systemd: Invoked with no_block=False name=systemd-journald enabled=None daemon_reload=False state=restarted user=False masked=None
Sep 20 16:17:13 ose3-master systemd: Stopping Flush Journal to Persistent Storage...
Sep 20 16:17:13 ose3-master journal: Journal stopped
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master systemd: Stopping Flush Journal to Persistent Storage...
Sep 20 16:17:13 ose3-master journal: Journal stopped
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master systemd: Stopping Flush Journal to Persistent Storage...
Sep 20 16:17:13 ose3-master journal: Journal stopped
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:13 ose3-master journal: Permanent journal is using 8.0M (max allowed 8.0G, trying to leave 1.4G free of 2.5G available → current limit 1.0G).
Sep 20 16:17:15 ose3-master journal: Permanent journal is using 176.0M (max allowed 8.0G, trying to leave 1.4G free of 2.3G available → current limit 866.9M).
Sep 20 16:17:15 ose3-master systemd-journald[460]: Received SIGTERM from PID 1 (systemd).
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to create new runtime journal: No such file or directory
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Failed to set file attributes: Operation not supported
Sep 20 16:17:15 ose3-master systemd-journald[10177]: Assertion 'f' failed at src/journal/journal-file.c:132, function journal_file_close(). Aborting.
Sep 20 16:17:15 ose3-master journal: Journal started
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 20 16:17:15 ose3-master rsyslogd: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]

@soltysh

soltysh commented Sep 21, 2017 •

Copy link
Copy Markdown
Author

I did a bit of googling and it looks like there are 2 required actions for this to work properly:

  1. create the directory and
  2. make sure it has the appropriate selinux context set.

I think we're failing the 2nd step. Let's sync when you're online.

register: journald_conf_file

- name: Update journald setup
replace:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice timing, @soltysh I was just looking into this problem in my env.

Would it have been more clean to drop a templated file into /etc/systemd/journald.conf.d instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlbewley not sure, I'd defer to @sdodson as the main ansible installer maintainer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlbewley Yeah, that's probably a nice improvement. PR for that ? :-) Given this just merged I wouldn't worry about attempting to migrate anyone from how this PR modified things to the dropin file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other drop ins we've named 'openshift-ansible.conf' FWIW

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i noticed that in dnsmasq.d, @sdodson i'll try to find some time to do that PR. don't hold your breath :)

openshift-merge-robot added a commit to openshift/origin that referenced this pull request Dec 6, 2017
Automatic merge from submit-queue (batch tested with PRs 17217, 17597, 17606).

Remove journald limits

@mfojtik this is dropping the hacks we had in place to tweak journald, now that ansible is doing it (openshift/openshift-ansible#3753 and openshift/openshift-ansible#5796). I'm additionally bringing back the deployments e2e's that were suffering from it. Let's see how far we can go with it. 

/cc @tnozicka 

Fixes #14785
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.