verdigris-cookbooks / opsworks-rabbitmq Goto Github PK
View Code? Open in Web Editor NEWWrapper cookbook for automatically setting up RabbitMQ cluster on AWS OpsWorks
License: BSD 2-Clause "Simplified" License
Wrapper cookbook for automatically setting up RabbitMQ cluster on AWS OpsWorks
License: BSD 2-Clause "Simplified" License
As per this commit - 45e34fd#diff-b22b9fdef9829890209682dd271cccb3 - the version of the rabbitmq cookbook was downgraded to 2.4 from 3.7. The version 2.4 cookbook installs version 3.1.5 of RabbitMQ which is quite old whereas the 3.7 version installs 3.4.4 which, though not latest, is still quite recent.
Any particular reason for this downgrade?
Hello Verdigris,
First, thanks for writing this cookbook. Indeed a great help.
I"m trying to get my head across how do a node join cluster?
The cluster
recipe only runs when there is a change in cookie. Also, when the node is first launch. However, since sever list is populated at run time and it's only happening at line 101, no template change is happening. It is only restarting the node and resetting it, making it fresh installation.
That explain why /etc/rabbitmq/rabbitmq.config
file has cluster node list empty. However, surprisingly when i run rabbitmqctl cluster_status
it shows me all the connecting nodes. I cannot figure out how did it happen. Please help me, if you could recall anything anyhow
env: aws
cluster: true
layer_name:
Please help me to figure out why opswork is not running the mentioned configure event properly thanks
undefined method `[]' for nil:NilClass
/var/chef/runs/44e738b3-9018-4d01-b390-f6200628e13a/local-mode-cache/cache/cookbooks/opsworks_rabbitmq/recipes/cluster.rb:33:in `from_file'
/var/chef/runs/44e738b3-9018-4d01-b390-f6200628e13a/local-mode-cache/cache/cookbooks/opsworks_rabbitmq/recipes/cluster.rb:
26: # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27: # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28: # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29:
30: # Configurable through stack's custom JSON
31: rabbitmq_layer = node['rabbitmq']['opsworks']['layer_name']
32:
33>> instances = node[:opsworks][:layers][rabbitmq_layer][:instances]
34: rabbitmq_cluster_nodes = instances.map{ |name, attrs| "rabbit@#{name}" }
35: node.set['rabbitmq']['cluster_disk_nodes'] = rabbitmq_cluster_nodes
36:
x86_64-linux
[2017-06-05T11:53:55+00:00] ERROR: Running exception handlers
[2017-06-05T11:53:55+00:00] ERROR: Exception handlers complete
[2017-06-05T11:53:55+00:00] FATAL: Stacktrace dumped to /var/chef/runs/44e738b3-9018-4d01-b390-f6200628e13a/local-mode-cache/cache/chef-stacktrace.out
[2017-06-05T11:53:55+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-06-05T11:53:55+00:00] ERROR: undefined method `[]' for nil:NilClass
[2017-06-05T11:53:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.