Manual Deletion of Users and Queue

58 views
Skip to first unread message

Satheesh Kumar

unread,
Dec 15, 2022, 12:22:10 AM12/15/22
to rabbitmq-users
Hello,

i have a scenario to delete nearly 200000 users in RabbitMQ. if  i want to use the rabbitmq api which is (/api/users/bulk-delete). How many i can delete per day.

Is there any chance it will affect the rabbitmq server
 

Michal Kuratczyk

unread,
Dec 15, 2022, 4:45:51 AM12/15/22
to rabbitm...@googlegroups.com
Hi,

This is a kind of question that is best answered by trying in a test env. I doubt anyone else had to do exactly the same thing and
there are factors such as RabbitMQ version and hardware used that may heavily impact the result.

We even have a file with 100000 users that you can use for testing: https://github.com/rabbitmq/sample-configs/tree/main/users

So I'd recommend just importing that file and then testing the request. As an additional benefit, you will practice before doing that in production.
Something like:
```
rabbitmqctl import_definitions users-100k.json
jq '{users: [.users[].name]}' < users-100k.json > usernames.json
curl -vvv -u guest:guest -H "content-type:application/json" -XPOST -d @usernames.json http://localhost:15672/api/users/bulk-delete/
```

There will be some impact for sure - after all, it's work that RabbitMQ needs to perform, but it's probably not much of a deal.
Splitting this into a few calls is probably a good idea to be on the safe side.

Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/cc7c92c7-7b49-490a-b676-f6829ba5f72bn%40googlegroups.com.


--
Michał
RabbitMQ team
Reply all
Reply to author
Forward
0 new messages