diff --git a/.gitignore b/.gitignore index d239dd72a6ae4ae269641f1be94ead0a4554b68d..c0b8dbb2d78794eeb4bbf1002660db9d26aa21a4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,3 @@ cmake_build *.lo *.tar.gz *.log - -cpp/third_party/thrift-0.12.0/ -cpp/third_party/faiss-1.5.1 -cpp/megasearch/ diff --git a/cpp/.gitignore b/cpp/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..e99e0273f35bccb8fb3c80dbc3435a742b688b69 --- /dev/null +++ b/cpp/.gitignore @@ -0,0 +1,6 @@ +third_party/thrift-0.12.0/ +third_party/faiss-1.5.1/ +third_party/bzip2-1.0.6/ +third_party/sqlite3/ +megasearch/ +conf/server_config.yaml diff --git a/cpp/conf/server_config_template.yaml b/cpp/conf/server_config_template.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb6f6beae249ddf1cc863877af9aa6772c14f888 --- /dev/null +++ b/cpp/conf/server_config_template.yaml @@ -0,0 +1,19 @@ +server_config: + address: 0.0.0.0 + port: 33001 + transfer_protocol: json #optional: binary, compact, json, debug + server_mode: thread_pool #optional: simple, thread_pool + gpu_index: 0 #which gpu to be used + +db_config: + db_path: /tmp/vecwise + db_backend_url: http://127.0.0.1 + db_flush_interval: 5 #unit: second + idmapper_max_open_file: 128 + +license_config: + license_path: "/tmp/system.license" + +cache_config: + cpu_cache_capacity: 16 # unit: GB + gpu_cache_capacity: 2 # unit: GB \ No newline at end of file diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index d7978db37d468c0ced8aca6b6c87f1274853803e..a3d9effb46a90bd47aba6ff8d59164def2e64c97 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -123,6 +123,7 @@ if (ENABLE_LICENSE STREQUAL "ON") add_executable(get_sys_info ${get_sys_info_src}) target_link_libraries(get_sys_info ${license_libs} vecwise_license) target_link_libraries(license_generator ${license_libs}) + install(TARGETS get_sys_info DESTINATION bin) endif () install(TARGETS vecwise_server DESTINATION bin) \ No newline at end of file