diff --git a/knowlg-automation/helm_charts/search/templates/search-configmap.yaml b/knowlg-automation/helm_charts/search/templates/search-configmap.yaml index 54fb0cd78a838a4efc380fc3ba15b4df656a2e71..f4f92a3ed12631d2c086bdd3883c3e0098bac96d 100644 --- a/knowlg-automation/helm_charts/search/templates/search-configmap.yaml +++ b/knowlg-automation/helm_charts/search/templates/search-configmap.yaml @@ -77,6 +77,49 @@ data: # And then uncomment this line to debug the configuration. # #log-config-on-start = true + default-dispatcher { + # This will be used if you have set "executor = "fork-join-executor"" + fork-join-executor { + # Min number of threads to cap factor-based parallelism number to + parallelism-min = 8 + # The parallelism factor is used to determine thread pool size using the + # following formula: ceil(available processors * factor). Resulting size + # is then bounded by the parallelism-min and parallelism-max values. + parallelism-factor = 32.0 + # Max number of threads to cap factor-based parallelism number to + parallelism-max = 64 + # Setting to "FIFO" to use queue like peeking mode which "poll" or "LIFO" to use stack + # like peeking mode which "pop". + task-peeking-mode = "FIFO" + } + } + actors-dispatcher { + type = "Dispatcher" + executor = "fork-join-executor" + fork-join-executor { + parallelism-min = 8 + parallelism-factor = 32.0 + parallelism-max = 64 + } + # Throughput for default Dispatcher, set to 1 for as fair as possible + throughput = 1 + } + actor { + deployment { + /searchActor + { + router = smallest-mailbox-pool + nr-of-instances = 10 + dispatcher = actors-dispatcher + } + /healthActor + { + router = smallest-mailbox-pool + nr-of-instances = 10 + dispatcher = actors-dispatcher + } + } + } } ## Secret key @@ -325,35 +368,26 @@ data: akka.http.parsing.max-content-length = 50MB schema.base_path = "../../schemas/" + #schema.base_path="https://sunbirdstagingpublic.blob.core.windows.net/sunbird-content-staging/schemas/local" + telemetry_env="sunbird" + installation.id="Sunbird_Stage" - content.relatedBoards.properties=["channel","board","subject","medium"] - - - # Path for elasticsearch.properties file - search.config.path=/home/learning/platform/search - - # Cache-Manager Configuration - cache.type="redis" - + # ElasticSearch Configuration + ekstepPlatformApiUserId="search-service" search.es_conn_info="{{ .Values.es_connection }}" search.fields.query=["name^100","title^100","lemma^100","code^100","domain","subject","description^10","keywords^100","ageGroup^10","filter^10","theme^10","genre^10","objects^25","contentType^100","language^200","teachingMode^25","skills^10","learningObjective^10","curriculum^100","gradeLevel^100","developer^100","attributions^10","identifier^100","IL_UNIQUE_ID^100","owner^50","board^100","relatedBoards^100","creator^100", "dialcodes^100","text","words","releaseNotes"] search.fields.date=["lastUpdatedOn","createdOn","versionDate","lastSubmittedOn","lastPublishedOn"] - search.fields.mode_collection=["identifier","name","objectType","contentType","mimeType","size","childNodes","board","subject","medium","gradeLevel","appIcon", "origin", "originData"] + search.fields.mode_collection=["identifier","name","objectType","contentType","mimeType","size","childNodes","board","subject","medium","gradeLevel","appIcon","resourceType","origin","originData"] search.batch.size=500 search.connection.timeout=30 - platform-api-url="http://localhost:8080/learning-service" - language.map={"Hindi":"hi", "English":"en", "Telugu":"te", "Kannada":"ka", "Tamil":"ta", "Assamese":"as", "Bengali":"bn", "Bodo":"bo", "Gujarati":"gu", "Konkani":"ko", "Malayalam":"ml", "Marathi":"mr", "Nepali":"ne", "Odia":"or", "Punjabi":"pj", "Sanskrit":"sk"} - #Top N Config for Search Telemetry - telemetry.search.topn=5 - telemetry_env=dev - installation.id=ekstep + language.map={"Hindi":"hi", "English":"en", "Telugu":"te", "Kannada":"ka", "Tamil":"ta", "Assamese":"as", "Bengali":"bn", "Bodo":"bo", "Gujarati":"gu", "Konkani":"ko", "Malayalam":"ml", "Marathi":"mr", "Nepali":"ne", "Odia":"or", "Punjabi":"pj", "Sanskrit":"san"} # Configuration for default channel ID channel.default="in.ekstep" - ekstepPlatformApiUserId="search-service" - + compositesearch.index.name="compositesearch" + content.tagging.backward_enable=false content.tagging.property=["subject","medium"] search.payload.log_enable=true