← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1849547] [NEW] Use threads insted of greethreads in IP monitor

 

Public bug reported:

IP monitor is a method that is going to be executed in a separate 
process, to monitor the IP addresses changes in a namespace.

This method spawns a thread to read from a socket opened by Pyroute2.
The read function is a blocking method that will end only when the 
socket is closed. To avoid thread starvation that can happen using 
greenthreads, IP monitor should use kernel threads. 

This will increase the resources used but will ensure that no message 
is lost when reading the monitor socket.

Reduced the number of IPs generated in "test_add_and_remove_multiple_ips"
to shrink the testing time used.

** Affects: neutron
     Importance: Undecided
     Assignee: Rodolfo Alonso (rodolfo-alonso-hernandez)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1849547

Title:
  Use threads insted of greethreads in IP monitor

Status in neutron:
  In Progress

Bug description:
  IP monitor is a method that is going to be executed in a separate 
  process, to monitor the IP addresses changes in a namespace.

  This method spawns a thread to read from a socket opened by Pyroute2.
  The read function is a blocking method that will end only when the 
  socket is closed. To avoid thread starvation that can happen using 
  greenthreads, IP monitor should use kernel threads. 

  This will increase the resources used but will ensure that no message 
  is lost when reading the monitor socket.

  Reduced the number of IPs generated in "test_add_and_remove_multiple_ips"
  to shrink the testing time used.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1849547/+subscriptions


Follow ups