Setting up a dedicated Executor per ServerConnector in Jetty

0 votes

I'm trying to configure a dedicated executor in jetty.xml (jetty-9) for each of my ServerConnectors, as I'm able to do in Tomcat, but for some reason I get lost.

I'm using the following configuration:

<Call name="addConnector">
      <Arg>
          <New id="proxyConnector" class="org.eclipse.jetty.server.ServerConnector">
          <Arg name="server"><Ref refid="Server" /></Arg>
          <Arg name="acceptors" type="int">-1</Arg>
          <Arg name="selectors" type="int">-1</Arg>
          <Arg name="factories">
            <Array type="org.eclipse.jetty.server.ConnectionFactory">
              <Item>
                <New class="org.eclipse.jetty.server.HttpConnectionFactory">
                  <Arg name="config"><Ref refid="httpConfig" /></Arg>
                    <Arg name="compliance"><Call class="org.eclipse.jetty.http.HttpCompliance" name="valueOf"><Arg><Property name="jetty.http.compliance" default="RFC7230"/></Arg></Call></Arg>
                </New>
              </Item>
            </Array>
          </Arg>
            <Set name="host">127.0.0.1</Set>
            <Set name="port">50000</Set>
            <Set name="idleTimeout">30000</Set>
            <Set name="soLingerTime">-1</Set>
            <Set name="acceptorPriorityDelta">0</Set>
            <Set name="acceptQueueSize">0</Set>
        </New>
      </Arg>
    </Call>

Is this even possible ?

Am I doing it in a right way?

Can anyone help me with this please ?

Jul 9, 2018 in Other DevOps Questions by shubham
• 6,890 points
34 views

1 answer to this question.

0 votes

Executors are server-wide, and many components within Jetty expect that.

If you feel you need this, file an enhancement request at

https://github.com/eclipse/jetty.project/issue

I hope the above information will be helpful for you.

answered Jul 9, 2018 by Atul
• 10,240 points

Related Questions In Other DevOps Questions

0 votes
1 answer

Setting up CICD on a local server

As to how to integrate git repo ...READ MORE

answered May 31, 2018 in Other DevOps Questions by ajs3033
• 7,280 points

edited May 31, 2018 by ajs3033 27 views
0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,810 points
259 views
0 votes
1 answer

Base a stage in pipeline by using a preloaded template

I don't think it's possible to load ...READ MORE

answered Jul 11, 2018 in Other DevOps Questions by ajs3033
• 7,280 points
38 views
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
110 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
72 views
0 votes
1 answer

How do I preserve local ivy repository in Bluemix BUILD & DEPLOY?

You're right--the pipeline spins up a new ...READ MORE

answered Jul 17, 2018 in Other DevOps Questions by Atul
• 10,240 points
29 views