forked from openml-labs/server-demo
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first version of feature elastic search ready
* First approach to use the elasticsearch service * elasticsearch query example * elasticsearch query complete example * Elasticsearch setup configured * Remove .DS_Store and add it to dockerignore * Created an elastic search endpoint. It isnt working yet * Just to test the new database * To rebase develop * Working but not up-to-date with develop branch * Service working. Need to get up-to-date with develop * Some bugfixes for the connectors * Deleting docker images in clean script * Fixed issues with authentication * Publication search seems to work. TODO: test cases and other resourcse * platform and platform_identifier changed from aiod_entry to each instance * Created testcase for publication search * Made ElasticSearch router generic, implemented it for dataset * Logstash configured for dataset, experiment, ml_model, publication, and service * Logstash configured for dataset, experiment, ml_model, publication, and service * Logstash waits until fill-db-with-examples ends * take src from develop * Copied entire develop branch * Logstash configuration readapted to new names * Logstash configuration readapted to new names * added ai4experiments to platform names * Copied initial search routers to start creating them * Examples of ml_model, dataset and experiment used to insert ai4experiment data * Descriptions of the ai4experiment data improved * platform added to mappings * elasticsearch query example completed * First version of search service working * Search router tests implemented * Search fields selection added * Added search for event, news, ortganisation and project * Added routers for event, news, organisation and project * Logstash names changed * added logstash_config.py, just for having it there * Pagination changed to actual pages * Pagination changed to actual pages * Application areas added to elasticsearch resuts * First version with deletion * Prepared to be merged with develop * pull request modifications * pull request modifications * pull request modifications * Combined search with sql queries in process * Search functionality combined with optional SQL statment to retrieve everything * Elasticsearch and logstash configuration integrated in src * Search router tests actualised * Search router tests actualised * Search router tests actualised * pre-commit passed * All test passed and working. Not merged with develop * huggingface connector test to its original state * back to commented huggingface connector * Fixing unittests by making sure Elasticsearch instance can also be created when ES_USER and ES_PASSWORD env vars are empty; used the style of PR #199 * clean logstash configuration * clean logstash configuration * clean logstash configuration * clean logstash configuration * clean logstash configuration * clean logstash configuration * logstash config files generated with jinja2 * logstash config files generated with jinja2 * Logstash config files generated with jinja2. All test passed, but not merged with develop. * Second round of pull request comments * Second round of pull request comments * Second round of pull request comments * Second round of pull request comments * Second round of pull request comments * Created data/elasticsearch/.gitkeep to make sure it exists with the right permissions * Deleted autogenerated file logstash/config/logstash.yml * cleanup * Making sure docker compose up works even if generated files do not exist; added logging; simplified file names * Make sure data folders are always created with correct permissions (this was by accident removed in commit cc8c22f) * Added default logstash configuration * Fixed docker compose * Using FastAPI input validation * Made status nullable, so that we can return an empty status in the search_router --------- Co-authored-by: Adrián <[email protected]> Co-authored-by: Jos van der Velde <[email protected]>
- Loading branch information
1 parent
4e053bc
commit 7155396
Showing
61 changed files
with
1,777 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
scripts | ||
venv | ||
data | ||
**.DS_Store |
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
Empty file.
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,13 @@ | ||
--- | ||
## Default Elasticsearch configuration from Elasticsearch base image. | ||
## https://github.com/elastic/elasticsearch/blob/master/distribution/docker/src/docker/config/elasticsearch.yml | ||
# | ||
cluster.name: "docker-cluster" | ||
network.host: 0.0.0.0 | ||
|
||
## X-Pack settings | ||
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html | ||
# | ||
xpack.license.self_generated.type: basic | ||
xpack.security.enabled: true | ||
xpack.monitoring.collection.enabled: true |
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,13 @@ | ||
# https://www.docker.elastic.co/ | ||
FROM docker.elastic.co/logstash/logstash:8.11.0 | ||
|
||
# Download MySQL JDBC driver to connect Logstash to MySQL | ||
RUN curl -Lo "mysql-connector-j-8.2.0.tar.gz" "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-8.2.0.tar.gz" \ | ||
&& tar -xf "mysql-connector-j-8.2.0.tar.gz" "mysql-connector-j-8.2.0/mysql-connector-j-8.2.0.jar" \ | ||
&& mv "mysql-connector-j-8.2.0/mysql-connector-j-8.2.0.jar" "mysql-connector-j.jar" \ | ||
&& rm -r "mysql-connector-j-8.2.0" "mysql-connector-j-8.2.0.tar.gz" | ||
|
||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"] | ||
|
||
# Add your logstash plugins setup here | ||
# Example: RUN logstash-plugin install logstash-filter-json |
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,72 @@ | ||
## JVM configuration | ||
|
||
# Xms represents the initial size of total heap space | ||
# Xmx represents the maximum size of total heap space | ||
|
||
-Xms1g | ||
-Xmx1g | ||
|
||
################################################################ | ||
## Expert settings | ||
################################################################ | ||
## | ||
## All settings below this section are considered | ||
## expert settings. Don't tamper with them unless | ||
## you understand what you are doing | ||
## | ||
################################################################ | ||
|
||
## GC configuration | ||
11-13:-XX:+UseConcMarkSweepGC | ||
11-13:-XX:CMSInitiatingOccupancyFraction=75 | ||
11-13:-XX:+UseCMSInitiatingOccupancyOnly | ||
|
||
## Locale | ||
# Set the locale language | ||
#-Duser.language=en | ||
|
||
# Set the locale country | ||
#-Duser.country=US | ||
|
||
# Set the locale variant, if any | ||
#-Duser.variant= | ||
|
||
## basic | ||
|
||
# set the I/O temp directory | ||
#-Djava.io.tmpdir=$HOME | ||
|
||
# set to headless, just in case | ||
-Djava.awt.headless=true | ||
|
||
# ensure UTF-8 encoding by default (e.g. filenames) | ||
-Dfile.encoding=UTF-8 | ||
|
||
# use our provided JNA always versus the system one | ||
#-Djna.nosys=true | ||
|
||
# Turn on JRuby invokedynamic | ||
-Djruby.compile.invokedynamic=true | ||
|
||
## heap dumps | ||
|
||
# generate a heap dump when an allocation from the Java heap fails | ||
# heap dumps are created in the working directory of the JVM | ||
-XX:+HeapDumpOnOutOfMemoryError | ||
|
||
# specify an alternative path for heap dumps | ||
# ensure the directory exists and has sufficient space | ||
#-XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof | ||
|
||
## GC logging | ||
#-Xlog:gc*,gc+age=trace,safepoint:file=@loggc@:utctime,pid,tags:filecount=32,filesize=64m | ||
|
||
# log GC status to a file with time stamps | ||
# ensure the directory exists | ||
#-Xloggc:${LS_GC_LOG_FILE} | ||
|
||
# Entropy source for randomness | ||
-Djava.security.egd=file:/dev/urandom | ||
|
||
# Copy the logging context from parent threads to children | ||
-Dlog4j2.isThreadContextMapInheritable=true |
Oops, something went wrong.