Chef 11 not loading very large nodes


#1

I’m upgrading my production Chef Server from Chef 10 to 11 and ran into a
problem importing some nodes. A node with a 1.5M json file will load, but one
with a 1.9M or larger will not. I get the error

ERROR: . failed to create_child: Failure creating ‘server1.json’: 413 “Request
Entity Too Large”

These nodes have a very large number of virtual IP addresses discovered by ohai
that is making them so large.

I tried playing with client_max_body_size in nginx, but it didn’t seem to help.
Any other thoughts on what to increase to allow for very large nodes?

Thanks,
Dan


#2

Hi,

On 5/6/13 8:47 AM, dan@nemecfamily.com wrote:

I tried playing with client_max_body_size in nginx, but it didn’t seem to help.
Any other thoughts on what to increase to allow for very large nodes?

Unfortunately this limit is baked inside erchef (the erlang Chef server)
itself and I do not believe that it is currently configurable.

To better understand this use case, may I ask what you are storing in
node objects that are making them 1.5 MB?

Sincerely,

Steven


Steven Danna
Systems Engineer, Opscode, Inc
GPG Key: http://stevendanna.github.com/downloads/code/public.key


#3

On 5/6/13 8:52 AM, Steven Danna wrote:

Unfortunately this limit is baked inside erchef (the erlang Chef server)
itself and I do not believe that it is currently configurable.

For reference:


Steven Danna
Systems Engineer, Opscode, Inc
GPG Key: http://stevendanna.github.com/downloads/code/public.key


#4

You might investiage the whitelist cookbook, which would let you keep the data during the runs, but not store it all.

Adam

-----Original Message-----
From: dan@nemecfamily.com [mailto:dan@nemecfamily.com]
Sent: Monday, May 6, 2013 8:48 AM
To: chef@lists.opscode.com
Subject: [chef] Chef 11 not loading very large nodes

I’m upgrading my production Chef Server from Chef 10 to 11 and ran into a problem importing some nodes. A node with a 1.5M json file will load, but one with a 1.9M or larger will not. I get the error

ERROR: . failed to create_child: Failure creating ‘server1.json’: 413 “Request Entity Too Large”

These nodes have a very large number of virtual IP addresses discovered by ohai that is making them so large.

I tried playing with client_max_body_size in nginx, but it didn’t seem to help.
Any other thoughts on what to increase to allow for very large nodes?

Thanks,
Dan