Support multiple Cores

This commit is contained in:
2019-10-04 19:28:39 +02:00
parent fbeec466bc
commit 74234f9e84
6 changed files with 15 additions and 12 deletions

7
Cargo.lock generated
View File

@@ -701,6 +701,11 @@ dependencies = [
"wasi 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "glob"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "h2"
version = "0.1.26"
@@ -1049,6 +1054,7 @@ dependencies = [
"actix-service 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"actix-web 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)",
"bincode 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
"measure_time 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
"memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -2204,6 +2210,7 @@ dependencies = [
"checksum futures 0.1.28 (registry+https://github.com/rust-lang/crates.io-index)" = "45dc39533a6cae6da2b56da48edae506bb767ec07370f86f70fc062e9d435869"
"checksum generic-array 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec"
"checksum getrandom 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "473a1265acc8ff1e808cd0a1af8cee3c2ee5200916058a2ca113c29f2d903571"
"checksum glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
"checksum h2 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)" = "a5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462"
"checksum hashbrown 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e1de41fb8dba9714efd92241565cdff73f78508c95697dd56787d3cba27e2353"
"checksum hostname 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "21ceb46a83a85e824ef93669c8b390009623863b5c195d1ba747292c0c72f94e"

View File

@@ -45,21 +45,17 @@ This enables the index implementations to be agnostic from the underlying data s
cd mercator_indexer
for f in ../mercator_data_generator/1*.json
do
ln -s $f
ln -s $f
done
cargo run --release -- 1k 10k 100k
```
* Run the Spatial Index, while providing one of the datasets. Currently only one dataset (core) can be loaded at a time.
* Run the Spatial Index, while providing the path to the datasets.
```sh
cd mercator_service
for f in ../mercator_indexer/*.index
do
ln -s $f
done
RUST_LOG="warn,actix_web=info,mercator_service=trace" \
MERCATOR_IMPORT_DATA="100k" \
MERCATOR_DATA="../mercator_indexer/" \
MERCATOR_ALLOWED_ORIGINS="http://localhost:3200" \
cargo run --release
```