Created
January 9, 2019 13:22
-
-
Save jarifibrahim/ebb1b9e6e8e2d9a3eb4f2a27d7e4c940 to your computer and use it in GitHub Desktop.
Booster Catalog empty reponse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bombard launcher-backend with reindex API | |
for i in {1..5} | |
do | |
curl --silent -X GET "http://localhost:8080/api/booster-catalog" -H "accept: application/json" > /dev/null | |
curl -H "Content-Type: application/json" -X POST -d '{}' "http://localhost:8080/api/booster-catalog/reindex?token=abc" | |
curl --silent -X GET "http://localhost:8080/api/booster-catalog" -H "accept: application/json" > /dev/null | |
curl --silent -X GET "http://localhost:8080/api/booster-catalog" -H "accept: application/json" > /dev/null | |
curl -H "Content-Type: application/json" -X POST -d '{}' "http://localhost:8080/api/booster-catalog/reindex?token=abc" | |
# Using random sleep time | |
sleep 0.$[ ( $RANDOM % 100 ) + 1]s | |
done | |
# This request is sent while the first 5 are being processed. | |
curl -H "Content-Type: application/json" -X POST -d '{}' "http://localhost:8080/api/booster-catalog/reindex?token=abc" | |
sleep 10s | |
# Dump number of open files | |
pid=$(pidof "java") | |
echo "Number of open files -" $(ls -l /proc/$pid/fd | wc -l) | |
echo "System limit on number of open files -" $(ulimit -Hn) | |
echo -n "(this shouldn't be empty) missions => " | |
# This shouldn't be empty | |
curl --silent -X GET "http://localhost:8080/api/booster-catalog" -H "accept: application/json" | jq .missions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment