cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9068) Listing Port Forwarding Rules take too much time to load
Date Tue, 17 Nov 2015 17:23:11 GMT

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

ASF GitHub Bot commented on CLOUDSTACK-9068:
--------------------------------------------

GitHub user nitin-maharana opened a pull request:

    https://github.com/apache/cloudstack/pull/1081

    CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to load

    For setting the width of each data item for each row of Port Forwarding rules, it was
processing all rules.
    
    Basically for each data item, it was searching in all rules, which is un-necessary.
    If there are N-Rules, It was processing N-times.
    
    Now, it only processes one time by taking all N-rules at a time.
    The previous solution was of O(NxN). Now its changed to O(N).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nitin-maharana/cloudstack CloudStack-Nitin15

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1081.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1081
    
----
commit 48df255f71e9938cc9e0879cbc60d9a0a778d95a
Author: Nitin Kumar Maharana <nitin.maharana@gmail.com>
Date:   2015-11-17T17:32:55Z

    CLOUDSTACK-9068: Listing Port Forwarding Rules take too much time to load
    
    For setting the width of each data item for each row of Port Forwarding rules, it was
processing all rules.
    
    Basically for each data item, it was searching in all rules, which is un-necessary.
    If there are N-Rules, It was processing N-times.
    
    Now, it only processes one time by taking all N-rules at a time.
    The previous solution was of O(NxN). Now its changed to O(N).

----


> Listing Port Forwarding Rules take too much time to load
> --------------------------------------------------------
>
>                 Key: CLOUDSTACK-9068
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9068
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: Nitin Kumar Maharana
>
> ISSUE
> ==================
> The performance of listPortForwardingRules slows down dramatically as the number of rules
for an IP increases. If there are 100 rules for an IP and it takes over a minute to respond.
> REPRODUCE STEPS
> ==================
> 1) Create many port forwarding rules (75-100) for a particular IP.
> 2) View the port forwarding rules for the IP in the UI or directly with the listPortForwardingRules
API command.
> 3) Notice the slowness.
> EXPECTED BEHAVIOR
> ==================
> listPortForwardingRules should always respond in a reasonable time.
> ACTUAL BEHAVIOR
> ==================
> listPortForwardingRules responds very slowly even with less than 100 rules configured.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message