-
Notifications
You must be signed in to change notification settings - Fork 1
/
handy-commands.txt
23 lines (12 loc) · 988 Bytes
/
handy-commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
time docker exec eventuate-tram-examples-perf-test_producer_1 curl -v -X POST --data "{}" -H 'content-type: application/json' http://localhost:8080/producer
curl -v -X POST --data "{}" -H 'content-type: application/json' http://localhost:8081/producer
insert into message(id, destination,headers, payload) values('id-1', 'foo', '{"ID" : "1"}', '{}');
insert into message(id, destination,headers, payload) values('id-10', 'foo', '{"ID" : "1"}', '{}');
SELECT tx.trx_id FROM information_schema.innodb_trx tx WHERE tx.trx_mysql_thread_id = connection_id();
SHOW ENGINE INNODB STATUS\G
# DOCKER
docker exec eventuate-tram-examples-perf-test_kafka_1 bin/kafka-topics.sh --bootstrap-server kafka:29092 --list
docker exec eventuate-tram-examples-perf-test_kafka_1 bin/kafka-consumer-groups.sh --bootstrap-server kafka:29092 --describe --group eventDispatcher
echo 'select count(*) from received_messages;' | ./mysql-cli.sh -i
# Prometheus
rate(consumer_events_consumed_total[30s])