You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Bin Chen (JIRA)" <ji...@apache.org> on 2012/11/26 08:16:58 UTC

[jira] [Created] (TS-1595) different domain have different origin_max_connections?

Bin Chen created TS-1595:
----------------------------

             Summary: different domain have different origin_max_connections?
                 Key: TS-1595
                 URL: https://issues.apache.org/jira/browse/TS-1595
             Project: Traffic Server
          Issue Type: Bug
          Components: Network
            Reporter: Bin Chen
            Assignee: Bin Chen
            Priority: Minor


In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "James Peach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504399#comment-13504399 ] 

James Peach commented on TS-1595:
---------------------------------

FWIW, you can do this with the Lua plugin. It would look something like this:

ts.config = require 'ts.config'
function remap(request)
  ts.config.override(ts.config.HTTP_ORIGIN_MAX_CONNECTIONS, 100)
end
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TS-1595) different domain have different origin_max_connections?

Posted by "Bin Chen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bin Chen updated TS-1595:
-------------------------

    Issue Type: Sub-task  (was: Bug)
        Parent: TS-1578
    
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505543#comment-13505543 ] 

Leif Hedstrom commented on TS-1595:
-----------------------------------

Right, we've talked about rewriting the configs such that they get more like "virtualhost" directives. For now, is the conf_remap.so plugin not adequate? Thinking about this some more, I'm not 100% sure it's worth the (slight) overhead of keeping another overridable struct member for each remap type, when the conf_remap.so plugin can do it already.
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504705#comment-13504705 ] 

Leif Hedstrom commented on TS-1595:
-----------------------------------

Oh, and I meant the remap config plugin, not the Lua plugin. I'm sure the Lua plugin will be plenty fast, but the C plugin is probably faster :)

I'm thinking about this some more, it's possible we could / should add a Overridable class member to the remap structure. This would allow for each remap rule to carry one of these as well. I can look into this, unless you really want to work on it :). Just let me know.
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "Bin Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505081#comment-13505081 ] 

Bin Chen commented on TS-1595:
------------------------------

TS-1595 is only one requirement. I think ts should have unified UI (Overridable config, more flexable ACL support, more friendly plugin param about every remap rule, cache-control &). So user only take care of the unidfied UI in remap.config.
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "Bin Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504383#comment-13504383 ] 

Bin Chen commented on TS-1595:
------------------------------

For example:
in record.config:
CONFIG proxy.config.http.origin_max_connections INT 1000
in remap.config:
map http://foo.cow.com/ http://bar.cow.com @proxy.config.http.origin_max_connections=100

then bar.cow.com will use proxy.config.http.origin_max_connections=100 replacing proxy.config.http.origin_max_connections INT 1000
and the other will proxy.config.http.origin_max_connections INT 1000
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "Bin Chen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504403#comment-13504403 ] 

Bin Chen commented on TS-1595:
------------------------------

how about performance?
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504640#comment-13504640 ] 

Leif Hedstrom commented on TS-1595:
-----------------------------------

I guess since the core the plumbing is in place, adding support for @<config>=<value> would be reasonable. I can look into that later today, but I doubt performance will be very noticeable compared to the plugin (but, easier to use, when you only want to override one or a couple configs).
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1595) different domain have different origin_max_connections?

Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503826#comment-13503826 ] 

Leif Hedstrom commented on TS-1595:
-----------------------------------

Can this be done via the overridable configs ?
                
> different domain have different origin_max_connections?
> -------------------------------------------------------
>
>                 Key: TS-1595
>                 URL: https://issues.apache.org/jira/browse/TS-1595
>             Project: Traffic Server
>          Issue Type: Sub-task
>          Components: Network
>            Reporter: Bin Chen
>            Assignee: Bin Chen
>            Priority: Minor
>
> In our env, we want different domain having different "origin_max_connections" to manage connection more careful avoiding network throttling. If not have different config in remap, use "origin_max_connections" default. Other, config in remap will replace "origin_max_connections".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira