Periodic_interval time affects cinder-scheduler service status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
wangwei |
Bug Description
There are a lot of volumes in my cinder-volumes, so it takes a lot of time for cinder to perform the periodic tasks.
I set the following parameters to 3600s in cinder.conf:
```
# Interval, in seconds, between running periodic tasks (integer value)
#periodic_interval = 60
```
This modification solves the problem of performing task time intervals. But there was another problem. When I restarted cinder-schulder, it only made the heartbeat after an hour to report status is up, and I could not create a volume during this time.
I debugged the code and found the reason here(cinder\
```
def start(self):
...
...
```
And in init_host_with_rpc function will sleep the time represented by the periodic_interval parameter:
```
def init_host_
print self.driver.
ctxt = context.
```
Fix proposed to branch: master /review. openstack. org/616440
Review: https:/