Skip to content

Instantly share code, notes, and snippets.

View lukebakken's full-sized avatar

Luke Bakken lukebakken

View GitHub Profile
[
{rabbit, [
{tcp_listeners, [{"127.0.0.1", 1672}]},
{ssl_listeners, [1671]}, % This needs to be unique on each node
{log_levels, [{connection, debug}]},
{heartbeat, 30},
{handshake_timeout, 20000},
{consumer_timeout, 86400000},
{ssl_handshake_timeout, 20000},
{default_vhost, <<"default">>},

main

C:\Users\bakkenl\rmq-server\rabbitmq_server-main
> Measure-Command { .\sbin\rabbitmqctl.bat import_definitions C:\Users\bakkenl\development\rabbitmq\sample-configs\queues\100k-classic-queues.json }

Days              : 0
Hours             : 0
Minutes           : 3
Seconds           : 55

Hello -

Thanks for using RabbitMQ. I'm a member of the core engineering team.

Carefully look at the first 16 octets in this error log message:

2023-02-26 16:43:12.635470+00:00 [error] <0.1056.0>  operation none caused a connection exception frame_error: "type 3, first 16 octets = <<\"{\\\"payload\\\":{\\\"res\">>: {invalid_frame_end_marker,\n                                                      
99}"
2023-02-26 16:43:15.638860+00:00 [error] &lt;0.1056.0&gt; closing AMQP connection &lt;0.1056.0&gt; (10.244.0.18:60608 -&gt; 10.244.0.21:5672):
"""Basic message consumer example"""
import functools
import logging
import pika
LOG_FORMAT = ('%(levelname) -10s %(asctime)s %(name) -30s %(funcName) '
'-35s %(lineno) -5d: %(message)s')
LOGGER = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT)
@lukebakken
lukebakken / RabbitMQ-Clients.md
Last active January 5, 2022 23:46
Cllient library overview 2022-01

AMQP

Feature list

  • Low vs high-level
  • TLS support
  • Stats / Metrics / Monitoring (S)
  • Auto-reconnect (R)
  • Topology recovery (TR)
@lukebakken
lukebakken / marblemouse.conf
Last active November 11, 2021 15:19 — forked from superjamie/marblemouse.conf
xorg.conf for Logitech Trackman Marble Mouse
# https://help.ubuntu.com/community/Logitech_Marblemouse_USB
# https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse
#
# Xorg Functions
# 1 = Left Click
# 2 = Middle Click
# 3 = Right Click
# 4 = Mouse Cursor Down
# 5 = Mouse Cursor Up
# 6 = Mouse Cursor Left
@lukebakken
lukebakken / pg2table.rb
Last active November 10, 2020 14:12 — forked from johanrhodin/pg2table.rb
Fill up pg2table in RabbitMQ
#!/usr/bin/env ruby
require 'bunny'
require 'dotenv/load'
connection = Bunny.new ENV['CLOUDAMQP_URL3']
connection.start
channel = connection.create_channel # Declare a channel
for i in 1..1
puts "Creating queue #{i}"
@lukebakken
lukebakken / AdamsGlacierCamp.gpx
Last active July 8, 2020 16:29
Klickitat North Cleaver
<?xml version="1.0"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" creator="CALTOPO" version="1.1"><wpt lat="46.23509721088818" lon="-121.51059653641363"><name>Adams Adams Glacier camp 7500</name></wpt></gpx>
$ python ./rabbitmqadmin
ERROR: Action not specified
rabbitmqadmin --help for help
$ python ./rabbitmqadmin --help
Usage
=====
rabbitmqadmin [options] subcommand