-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More memory efficient implementation of ElastiknnModel in python clie…
…nt (#153) This uses iterators (iterables ?) to produce the elastiknn vectors lazily instead of keeping them all in memory. Seems to fix some memory issues I was having with the ann-benchmarks project, where the containers would spike over 10GB of memory and crash.
- Loading branch information
1 parent
da6ee6a
commit 134017b
Showing
5 changed files
with
45 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
while true; | ||
do | ||
for c in $(docker ps -q); | ||
do | ||
echo "$c" | ||
mkdir -p /tmp/ann-benchmarks-$c | ||
for f in $(docker exec $c ls /var/log/elasticsearch); | ||
do | ||
docker exec $c cat /var/log/elasticsearch/$f > /tmp/ann-benchmarks-$c/$f | ||
done | ||
done | ||
sleep 1 | ||
done |