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
""" | |
Upgrade tests for KNN | |
(Use python 3) | |
python3 main {host (dont include port)} {command} | |
""" | |
import sys | |
from elasticsearch import Elasticsearch, RequestsHttpConnection |
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
version: '3' | |
services: | |
odfe-node1: | |
image: opensearchproject/opensearch:1.0.0-rc1 | |
container_name: opensearch-node1 | |
environment: | |
- cluster.name=os-cluster | |
- node.name=opensearch-node1 | |
- discovery.seed_hosts=opensearch-node1,opensearch-node2,opensearch-node3 | |
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2,opensearch-node3 |
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
version: '3' | |
services: | |
opensearch-node1: | |
image: opensearchproject/opensearch:1.0.0-rc1 | |
container_name: opensearch-node1 | |
environment: | |
- cluster.name=odfe-cluster | |
- node.name=opensearch-node1 | |
- discovery.seed_hosts=odfe-node1,odfe-node2,odfe-node3 | |
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping |
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
version: '3' | |
services: | |
odfe-node1: | |
image: amazon/opendistro-for-elasticsearch:1.13.2 | |
container_name: odfe-node1 | |
environment: | |
- cluster.name=odfe-cluster | |
- node.name=odfe-node1 | |
- discovery.seed_hosts=odfe-node1,odfe-node2,odfe-node3 | |
- cluster.initial_master_nodes=odfe-node1,odfe-node2,odfe-node3 |
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
""" | |
Repro attempt for https://discuss.opendistrocommunity.dev/t/reindexing-produces-different-result-on-the-same-query-vector/5564/8 | |
""" | |
from elasticsearch import Elasticsearch, RequestsHttpConnection, helpers | |
import math | |
import random | |
def get_es(): |
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
cmake_minimum_required(VERSION 2.8) | |
project(KNNIndex_FAISS) | |
# Corner case. For CMake 2.8, there is no option to specify set(CMAKE_CXX_STANDARD 11). Instead, the flag manually needs | |
# to be set. | |
if (CMAKE_VERSION VERSION_LESS "3.1") | |
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
else() | |
set(CMAKE_CXX_STANDARD 11) |