Adding connection close to http4 endpoints #58
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GitHub Issue: Islandora/documentation#978
What does this Pull Request do?
Adds
connectionClose=true
to all the http endpoints in our camel routes. This forces Camel to add aConnection: close
header to all requests, terminating the connection immediately after receiving the response.What's new?
connectionClose=true
all over the place as an endpoint parameter.How should this be tested?
/opt/karaf/bin/client
la | grep islandora
islandora-indexing-triplestore
,islandora-indexing-fcrepo
, andislandora-connector-derivative
bundle:stop your_id
for each of those idsCtrl+D
to get out of the consolecd ~
git clone -b connection-close https://github.com/dannylamb/Alpaca.git
cd Alpaca
./gradlew install
/opt/karaf/deploy
sudo cp islandora-indexing-fcrepo/build/libs/islandora-indexing-fcrepo-0.7.1.jar /opt/karaf/deploy
sudo cp islandora-indexing-triplestore/build/libs/islandora-indexing-triplestore-0.7.1.jar /opt/karaf/deploy
sudo cp islandora-connector-derivative/build/libs/islandora-connector-derivative-0.7.1.jar /opt/karaf/deploy
Then run your test migration that does a bunch of stuff and monitor the files karaf keeps open with lsof.
sudo lsof | grep karaf | wc -l
You should see it go up slightly during the migration, but maintain (and even somes drop a little) if you keep running
lsof
over and over. When it's done, files should go back down to idle levels.I tested this by using devel_generate to make 1000 taxonomy terms, but @seth-shaw-unlv's tiff migration seems like a good test 🚀
Additional Notes:
This is it.
Interested parties
@Islandora-CLAW/committers