I made a few tests with different client libraries.
- Laptop 12 cores, 32 gb ram
- Two rabbitmq nodes in cluster ( same machine)
- RabbitMQ version 3.7.13 - Erlang 21.2.4
- 64 async threads for each server
- Ubuntu 18.04
bash << EOF | |
logpath=("/var/log/rabbitmq/[email protected]") | |
numbervhosts=$(expr $(sudo rabbitmqctl list_vhosts | wc -l) - $num) | |
startnr=$(grep -n "Starting RabbitMQ" $logpath | tail -1 | cut -d : -f 1) # Last RabbitMQ Starting | |
startedvhosts=$(sed -n "$startnr"',$p' $logpath | grep -n "Starting message stores for vhost" | wc -l) | |
awk -v nvh="$numbervhosts" -v svh="$startedvhosts" 'BEGIN{ print int(svh/nvh*100) }' | |
EOF |
curl -i -v -X PUT -H 'Content-Type: application/json' https://vhost:[email protected]/api/parameters/shovel/vhost/my-shovel2 -d '{"value":{"src-protocol": "amqp091","src-uri":"amqp://vhost@/vhost","src-queue":"q1","dest-protocol": "amqp091", "dest-uri": "amqp://vhost@/vhost","dest-queue": "q2"}}' | |
curl -i -v -X DELETE -H 'Content-Type: application/json' https://vhost:[email protected]/api/parameters/shovel/vhost/my-shovel2 |
#!/bin/bash | |
# Creates 400 vhosts | |
# Related to https://github.com/rabbitmq/rabbitmq-server/pull/1770 & https://groups.google.com/d/msg/rabbitmq-users/ZbTNp6YqZeo/53JLiy2zAQAJ | |
# Clean up with rabbitmqctl eval '[garbage_collect(P) || P <- processes()].' | |
# To see this behavior (for a longer time) in 3.7.9 you need to turn off background_gc_enbaled: {background_gc_enabled, false} in rabbitmq.config | |
for i in `seq 1 400`; | |
do | |
echo $i |
I hereby claim:
To claim this, I am signing this object:
With[{text=Text[Style["First Last",Black,FontFamily->"Helvetica",24]],graph=RandomGraph[BernoulliGraphDistribution[RandomInteger[{5,10}],RandomReal[{0.6,0.9}]],GraphHighlight->{RandomInteger[{1,10}]},ImageSize->{50,50}]}, | |
Grid[{{Rotate[text,\[Pi]],graph},{text,graph}}, | |
Frame->{{},{True,True}}, | |
Alignment->{{Right,Left},{Center,Center}}] | |
] |
# Get Heroku for the RasPi, where we store the credentials | |
sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./" | |
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install heroku |
echo "deb http://packages.erlang-solutions.com/debian jessie contrib" | sudo tee /etc/apt/sources.list.d/erlang-solutions.list | |
wget http://packages.erlang-solutions.com/debian/erlang_solutions.asc | |
sudo apt-key add erlang_solutions.asc | |
sudo apt update | |
sudo apt install elixir |
model StarExample | |
extends Modelica.Icons.Example; | |
import Modelica.Constants.pi; | |
Modelica.Electrical.MultiPhase.Basic.Star star(m = m) annotation(Placement(visible = true, transformation(origin = {-60, 40}, extent = {{-10, -10}, {10, 10}}, rotation = -540))); | |
Modelica.Electrical.Analog.Basic.Ground ground annotation(Placement(visible = true, transformation(origin = {-80, -80}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); | |
Modelica.Electrical.Analog.Sources.SineVoltage sineVoltage(V = 10, freqHz = 1) annotation(Placement(visible = true, transformation(origin = {-80, -0}, extent = {{-10, -10}, {10, 10}}, rotation = -90))); | |
Modelica.Electrical.MultiPhase.Sources.SineVoltage sineVoltage1(final m = m, V = fill(sqrt(2) * VRMS, m), freqHz = fill(f, m)) annotation(Placement(transformation(origin = {0, 0}, extent = {{10, -10}, {-10, 10}}, rotation = 90), visible = true)); | |
Modelica.Electrical.MultiPhase.Basic.Star star1(final m = m) annotation(Placement(transformation(extent = {{10, -10}, {-10, 10}}, r |
model RevolutePosition | |
Modelica.Blocks.Sources.CombiTimeTable combiTimeTable1(tableName = "var1", tableOnFile = true, smoothness = Modelica.Blocks.Types.Smoothness.ContinuousDerivative, extrapolation = Modelica.Blocks.Types.Extrapolation.HoldLastPoint, fileName = Modelica.Utilities.Files.loadResource("modelica://RevolutePosition/TestProfile1.txt")) annotation(Placement(visible = true, transformation(origin = {20, 20}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); | |
Modelica.Mechanics.Rotational.Sources.Position position1(useSupport = false, f_crit = 0.1, exact = false) annotation(Placement(visible = true, transformation(origin = {-20, 20}, extent = {{10, -10}, {-10, 10}}, rotation = 0))); | |
Modelica.Mechanics.MultiBody.Parts.Body body(r_CM = {0.1, 0, 0}, m = 1) annotation(Placement(visible = true, transformation(origin = {-70, -20}, extent = {{-10, -10}, {10, 10}}, rotation = -540))); | |
inner Modelica.Mechanics.MultiBody.World world(enableAnimation = false) annotation(Placement(visible = true, transform |