[RFE] Add a config option rpc_response_max_timeout

Bug #1805769 reported by nicky
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Wishlist
nicky

Bug Description

We want to add a new configuration option rpc_response_max_timeout to
neutron.conf.

The rpc_response_max_timeout plays a role of the ceiling of timeout
seconds when waiting for the response of a remote rpc server.

During an RPC call, the waiting time starts from the existing parameter
rpc_response_timeout(default 60s) and doubled each time until it reaches
the ceiling which is currently set as 10 times rpc_response_timeout.
It seems to be less flexible since user cannot directly change the
ceiling value unless he/she changes the rpc_response_timeout. By adding
rpc_response_max_timeout, user can now modify it without changing
any other parameters.

Tags: rfe-approved
nicky (ss104301)
Changed in neutron:
assignee: nobody → nicky (ss104301)
status: New → In Progress
Revision history for this message
Miguel Lavalle (minsel) wrote :

Can you provide some more information on why the current way if handling this "is not reasonable"? Marking it as incomplete for the time being

Changed in neutron:
status: In Progress → Incomplete
nicky (ss104301)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/621740

Revision history for this message
nicky (ss104301) wrote : Re: maximum RPC response timeout is not reasonable

In the current version, users cannot directly change the max timeout of an rpc client. The value is just rpc_response_timeout (already in neutron.conf) times 10, which is way too long and inflexible.

It may be improved by adding a new configuration to neutron.conf to let user decide what the max timeout is. Uses now can modify this value without changing the value of rpc_response_timeout.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/621740

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/622075

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/621062

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/622854

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/622075

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/622854

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/622897

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/622897

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/623114

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.openstack.org/623163

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/623163

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/623369

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/623369

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/623393

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/623114

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/623401

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/623393

nicky (ss104301)
description: updated
nicky (ss104301)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/626109

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lib (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/626119

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron-lib (master)

Change abandoned by nicky (<email address hidden>) on branch: master
Review: https://review.openstack.org/626119

Revision history for this message
Slawek Kaplonski (slaweq) wrote : Re: maximum RPC response timeout is not reasonable

As this is proposal to add new config option, I think that it should be handled as RFE and discussed by drivers team before we will start merging code.

tags: added: rfe
nicky (ss104301)
summary: - maximum RPC response timeout is not reasonable
+ [RFE] Maximum RPC response timeout is not reasonable
nicky (ss104301)
summary: - [RFE] Maximum RPC response timeout is not reasonable
+ [RFE] Add a config option rpc_response_max_timeout
description: updated
Revision history for this message
Miguel Lavalle (minsel) wrote :

This RFE was discussed and approved during today's meeting

tags: added: rfe-approved
removed: rfe
Changed in neutron:
status: Incomplete → In Progress
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/626109
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f1592c42d9649e8da952021aa1f6e7a4a127cd48
Submitter: Zuul
Branch: master

commit f1592c42d9649e8da952021aa1f6e7a4a127cd48
Author: nicky <email address hidden>
Date: Wed Dec 19 16:07:05 2018 +0800

    Add a new configuration parameter rpc_response_max_timeout

    A new parameter rpc_response_max_timeout is added and registered into
    neutron.conf.

    The rpc_response_max_timeout plays a role of the ceiling of timeout
    seconds when waiting for the response of a remote rpc server.

    During an RPC call, the waiting time starts from the existing parameter
    rpc_response_timeout(default 60s) and doubled each time until it reaches
    the ceiling which is currently set as 10 times rpc_response_timeout.
    It seems to be less flexible since user cannot directly change the
    ceiling value unless he/she changes the rpc_response_timeout.
    By adding rpc_response_max_timeout, user can now modify it without
    changing any other parameters.

    Co-Authored-By: Allain Legacy<email address hidden>

    Change-Id: I170113c2946cc95308edcb1a703a99c71e50b6f9
    Related-Bug: #1805769
    Story: 2004456
    Task: 28171

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-lib (master)

Reviewed: https://review.openstack.org/623401
Committed: https://git.openstack.org/cgit/openstack/neutron-lib/commit/?id=af902dfb2ac8e5bc253af8fb85bc4d0f61bdfa56
Submitter: Zuul
Branch: master

commit af902dfb2ac8e5bc253af8fb85bc4d0f61bdfa56
Author: nicky <email address hidden>
Date: Thu Dec 20 13:24:00 2018 +0800

    Add a new configuration parameter rpc_response_max_timeout

    A new parameter rpc_response_max_timeout is added and registered into
    neutron.conf. (related codes in neutron)

    The rpc_response_max_timeout plays a role of the ceiling of timeout
    seconds when waiting for the response of a remote rpc server.

    During an RPC call, the waiting time starts from the existing parameter
    rpc_response_timeout(default 60s) and doubled each time until it reaches
    the ceiling which is currently set as 10 times rpc_response_timeout.
    It seems to be less flexible since user cannot directly change the
    ceiling value unless he/she changes the rpc_response_timeout.

    By adding rpc_response_max_timeout, user can now modify it without
    changing any other parameters.

    In class _BackingOffContextWrapper, _max_timeout and its setters are
    useless temporarily because users can now directly change the rpc_max_
    timeout in neutron.conf. However, there're not deleted as we should not
    prevent the developer to override this parameter.

    Co-Authored-By: Allain Legacy<email address hidden>

    Change-Id: I45d2e5c063d2dd43cb8aec1d46faa3ee8ea4825f
    Depends-on: https://review.openstack.org/#/c/626109
    Related-Bug: #1805769
    Story: 2004456
    Task: 28171

Changed in neutron:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.