cookbook 'gearman', '~> 1.0.0'
gearman (2) Versions 1.0.0 Follow5
Installs/Configures gearman job server
cookbook 'gearman', '~> 1.0.0', :supermarket
knife supermarket install gearman
knife supermarket download gearman
Gearman Job Server Chef Cookbook
This is a Chef cookbook to manage Gearman
Platforms
The following platforms and versions are tested and supported using test-kitchen
- CentOS 6.6, 7.1
- Debian 7.8, 8.1
- Ubuntu 12.04, 14.04
Other versions that should work fine but are not testing in [test-kitchen].
- Amazon Linux 2015-03
- RHEL >= 6.6
Tested Queue Types and Distros
An X indicates that the queue type for the distro is supported. Different packages support different queue types because they had different compile time options and libraries used.
Drizzle | Memcached | MySQL | Postgres | SQLite3 | Tokyo Cabinet | |
---|---|---|---|---|---|---|
CentOS 6.6 | X | X | X | X | ||
CentOS 7.1 | X | X | X | X | ||
Debian 7.8 | X | X | ||||
Debian 8.1 | X | X | X | X | ||
Ubuntu 12.04 | X | X | X | |||
Ubuntu 14.04 | X | X | X | X |
Attributes
Please see gearman documentation for what each of these options do.
-
default['gearman']['parameters']['backlog']
- Number of backlog connections for listen. -
default['gearman']['parameters']['file-descriptors']
- Number of file descriptors to allow for the process. Default is max allowed for users. -
default['gearman']['parameters']['job-retries']
- Number of attempts to run the job before the job server removes it. Default is no limit. -
default['gearman']['parameters']['log-file']
- Log file to write errors and information to. -
default['gearman']['parameters']['listen']
- Address the server should listen on. Default is INADDR_ANY. -
default['gearman']['parameters']['port']
- Port the server should listen on. Default is 4730. -
default['gearman']['parameters']['threads']
- Number of I/O threads to use. Default = 0 default['gearman']['parameters']['user']
- Switch to given user after startupdefault['gearman']['queue-type']
- Persistent queue type to use. Valid options are libdrizzle, libmemcached, libsqlite3, libpq, mysqldefault['gearman']['libdrizzle']['host']
- Host of serverdefault['gearman']['libdrizzle']['port']
- Port of serverdefault['gearman']['libdrizzle']['uds']
- Unix domain socket for serverdefault['gearman']['libdrizzle']['user']
- User name for authenticationdefault['gearman']['libdrizzle']['password']
- Password for authenticationdefault['gearman']['libdrizzle']['db']
- Database to usedefault['gearman']['libdrizzle']['table']
- Table to usedefault['gearman']['libdrizzle']['mysql']
- Set to true to use MySQL protocoldefault['gearman']['libmemcached']['servers']
- List of memcached servers to use.default['gearman']['libsqlite3']['db']
- Database file to usedefault['gearman']['libsqlite3']['table']
- Table to usedefault['gearman']['libpq']['conninfo']
- PostgreSQL connection information stringdefault['gearman']['libpq']['table']
- Table to usedefault['gearman']['mysql']['host']
- Host of serverdefault['gearman']['mysql']['port']
- Port of serverdefault['gearman']['mysql']['user']
- User for authenticationdefault['gearman']['mysql']['password']
- Password for authenticationdefault['gearman']['mysql']['db']
- Database to usedefault['gearman']['mysql']['table']
- Table to use
Usage
gearman::default
e.g.
Just include gearman
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[gearman]" ] }
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github to the development branch
Helpful Stuff
- Shared Serverspec Tests - Explains why the serverspec tests are set up the way the are.
License and Authors
Authors: Chris Zeeb chris.zeeb@gmail.com and Contributors
Copyright:: 2015 Chris Zeeb <chris.zeeb@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
apt ~> 2.7 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
gearman-job-server-cookbook CHANGELOG
This file is used to list changes made in each version of the gearman cookbook.
1.0.0 / 2015-12-14
Rewrite of gearman cookbook
Added
- Support for Amazon, CentOS, and RedHat
-
['gearman']['server']
options moved to['gearman']['parameters']
Changed
- Install from O/S packages instead of pulling package from github repository
- Added configuration options for:
- backlog
- file-descriptors
- job-retries
- log-file
- listen
- threads
- queue-type
- libdrizzle - all options
- libmemcached - all options
- libsqlite3 - all options
- libpq - all options
- mysql - all options
Removed
- Installing gearman-ruby gem
0.0.1 / 2011-02-17
- Initial release. The original cookbook can be found here. The 1.0.0 release is a complete rewrite.
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: gearman/metadata.rb:1
FC069: Ensure standardized license defined in metadata: gearman/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: gearman/metadata.rb:1
FC069: Ensure standardized license defined in metadata: gearman/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.0 passed this metric
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
FC069: Ensure standardized license defined in metadata: gearman/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.0 passed this metric
Testing File Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
1.0.0 failed this metric
1.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number