Skip to content

Commit

Permalink
Adjust jsonrpc configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
  • Loading branch information
skabashnyuk committed Sep 9, 2019
1 parent 0ae75c0 commit a0a32c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -629,20 +629,20 @@ che.server.secure_exposer.jwtproxy.memory_limit=128mb
# in case if pool size would be exceeded message execution will be rejected
che.core.jsonrpc.processor_max_pool_size=50
# Initial json processing pool. Minimum number of threads that used to process major JSON RPC messages.
che.core.jsonrpc.processor_core_pool_size=3
che.core.jsonrpc.processor_core_pool_size=5
# Configuration of queue used to process Json RPC messages.
# org.eclipse.che.commons.lang.execution.ExecutorServiceProvider contains more information about this parameter
che.core.jsonrpc.processor_queue_capacity=10000000
che.core.jsonrpc.processor_queue_capacity=100000

## Configuration of major "/websocket-minor" endpoint
# Maximum size of the JSON RPC processing pool
# in case if pool size would be exceeded message execution will be rejected
che.core.jsonrpc.minor_processor_max_pool_size=100
# Initial json processing pool. Minimum number of threads that used to process minor JSON RPC messages.
che.core.jsonrpc.minor_processor_core_pool_size=5
che.core.jsonrpc.minor_processor_core_pool_size=15
# Configuration of queue used to process Json RPC messages.
# org.eclipse.che.commons.lang.execution.ExecutorServiceProvider contains more information about this parameter
che.core.jsonrpc.minor_processor_queue_capacity=100
che.core.jsonrpc.minor_processor_queue_capacity=10000

## Port the the http server endpoint that would be exposed with Prometheus metrics
che.metrics.port=8087
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.QueryHint;
import javax.persistence.Table;
import org.eclipse.che.api.workspace.server.model.impl.WorkspaceImpl;
import org.eclipse.che.multiuser.api.permission.server.model.impl.AbstractPermissions;
Expand Down Expand Up @@ -54,7 +55,8 @@
"SELECT worker "
+ "FROM Worker worker "
+ "WHERE worker.userId = :userId "
+ "AND worker.workspaceId = :workspaceId ")
+ "AND worker.workspaceId = :workspaceId ",
hints = {@QueryHint(name = "eclipselink.query-results-cache", value = "true")})
})
@Table(name = "che_worker")
public class WorkerImpl extends AbstractPermissions implements Worker {
Expand Down

0 comments on commit a0a32c7

Please sign in to comment.