Skip to content

Instantly share code, notes, and snippets.

@GregSutcliffe
Created November 8, 2017 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GregSutcliffe/5b74a6fb4f1aff070395969474115577 to your computer and use it in GitHub Desktop.
Save GregSutcliffe/5b74a6fb4f1aff070395969474115577 to your computer and use it in GitHub Desktop.
curl --user "redacted" 'http://projects.theforeman.org/issues.json?status_id=closed&project_id=6&release_id=189|210'|json_reformat
...
{
"id": 14023,
"project": {
"id": 6,
"name": "Installer"
},
"tracker": {
"id": 1,
"name": "Bug"
},
"status": {
"id": 5,
"name": "Closed"
},
"priority": {
"id": 4,
"name": "Normal"
},
"author": {
"id": 6101,
"name": "Chris Duryee"
},
"assigned_to": {
"id": 6101,
"name": "Chris Duryee"
},
"category": {
"id": 67,
"name": "Foreman modules"
},
"subject": "puppet-foreman does not allow for configuration of PassengerMaxPoolSize",
"description": "The katello installer puppet code (not the puppet module itself but the foreman module) does not allow for configuring PassengerMaxPoolSize. It defaults to six, which is not difficult to max out, especially on heavily-used systems.\r\n\r\nTo replicate this behavior without a true load test, alter the 'index' method in /usr/share/foreman/app/controllers/api/v2/users_controller.rb to be:\r\n\r\n<pre>\r\n def index\r\n sleep(20)\r\n @users = resource_scope_for_index\r\n end\r\n</pre>\r\n\r\nAfter this, you should be able to use hammer to get the user list and max out the passenger worker pool (note that this is different than the httpd worker pool).\r\n\r\nThe default value of six is OK, but it should be spelled out in the conf file that it's six instead of relying on passenger internal defaults, and it should be configurable via installer options. ",
"start_date": "2016-03-02",
"done_ratio": 100,
"custom_fields": [
{
"id": 3,
"name": "Difficulty",
"value": ""
},
{
"id": 4,
"name": "Found in release",
"value": ""
},
{
"id": 6,
"name": "Bugzilla link",
"value": "1163452"
},
{
"id": 7,
"name": "Pull request",
"multiple": true,
"value": [
"https://github.com/theforeman/foreman-installer/pull/209"
]
}
],
"created_on": "2016-03-02T11:58:36Z",
"updated_on": "2016-12-06T10:09:48Z",
"closed_on": "2016-11-23T08:02:05Z",
"story_points": null,
"release": {
"release": {
"id": 189,
"name": "1.14.0"
}
}
}
],
"total_count": 10,
"offset": 0,
"limit": 25
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment