You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nlpcraft.apache.org by "Sergey Kamov (Jira)" <ji...@apache.org> on 2021/01/25 07:40:00 UTC

[jira] [Comment Edited] (NLPCRAFT-111) Fix Scala futures global pool usage.

    [ https://issues.apache.org/jira/browse/NLPCRAFT-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17270846#comment-17270846 ] 

Sergey Kamov edited comment on NLPCRAFT-111 at 1/25/21, 7:39 AM:
-----------------------------------------------------------------

SERVER
 - Default system executor service used for 'org.apache.nlpcraft.common.extcfg.NCExternalConfigManager'
 start

 - Default system executor service used for 'org.apache.nlpcraft.server.nlp.core.opennlp.NCOpenNlpParser'
 start

 - Default system executor service used for 'org.apache.nlpcraft.server.nlp.core.NCNlpServerManager'
 start

 - Default system executor service used for 'org.apache.nlpcraft.server.nlp.enrichers.NCServerEnrichmentManager'
 start

 - Default system executor service used for 'org.apache.nlpcraft.server.nlp.enrichers.date.NCDateEnricher'
 start

 - Default system executor service used for 'org.apache.nlpcraft.server.rest.NCRestManager'
 start/stop

 - Default system executor service used for 'org.apache.nlpcraft.server.probe.NCProbeManager'
 probe-comm

 - Default system executor service used for 'org.apache.nlpcraft.server.query.NCQueryManager'
 probe-comm

 - Default system executor service used for 'org.apache.nlpcraft.server.rest.NCBasicRestApi'
 askSync/sugSync

PROBE
 - Default system executor service used for 'org.apache.nlpcraft.common.extcfg.NCExternalConfigManager'
 start

 - Default system executor service used for 'org.apache.nlpcraft.probe.mgrs.nlp.NCProbeEnrichmentManager'
 for user mode code work

Suggestion
 1. server - 2 pool
 - probe NCQueryManager
 - rest - for NCBasicRestApi + NCProbeManager
 2. server - 1 pool
 - model - for NCProbeEnrichmentManager

all other - system

 


was (Author: sergeykamov):
SERVER

- Default system executor service used for 'org.apache.nlpcraft.common.extcfg.NCExternalConfigManager'
start

- Default system executor service used for 'org.apache.nlpcraft.server.nlp.core.opennlp.NCOpenNlpParser'
start

- Default system executor service used for 'org.apache.nlpcraft.server.nlp.core.NCNlpServerManager'
start

- Default system executor service used for 'org.apache.nlpcraft.server.nlp.enrichers.NCServerEnrichmentManager'
start

- Default system executor service used for 'org.apache.nlpcraft.server.nlp.enrichers.date.NCDateEnricher'
start

- Default system executor service used for 'org.apache.nlpcraft.server.rest.NCRestManager'
start/stop

- Default system executor service used for 'org.apache.nlpcraft.server.probe.NCProbeManager'
probe-comm

- Default system executor service used for 'org.apache.nlpcraft.server.query.NCQueryManager'
probe-comm

- Default system executor service used for 'org.apache.nlpcraft.server.rest.NCBasicRestApi'
askSync/sugSync


PROBE

- Default system executor service used for 'org.apache.nlpcraft.common.extcfg.NCExternalConfigManager'
start

- Default system executor service used for 'org.apache.nlpcraft.probe.mgrs.nlp.NCProbeEnrichmentManager'
for user mode code work


Suggestion
1. server - 2 pool
 - probe (for NCProbeManager + NCQueryManager)
 - rest - for NCBasicRestApi
2. server - 1 pool
 - model - for NCProbeEnrichmentManager

all other - system

 

> Fix Scala futures global pool usage.
> ------------------------------------
>
>                 Key: NLPCRAFT-111
>                 URL: https://issues.apache.org/jira/browse/NLPCRAFT-111
>             Project: NLPCraft
>          Issue Type: Improvement
>            Reporter: Sergey Kamov
>            Assignee: Sergey Kamov
>            Priority: Major
>             Fix For: 0.7.4
>
>
> Should be refactored. (Do not use import scala.concurrent.ExecutionContext.Implicits.global everywhere)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)