[pve-devel] Plugin to add support for native ZFS on shared storage
Alexandre DERUMIER
aderumier at odiso.com
Wed Aug 14 02:22:22 CEST 2013
Hi,
this is strange ....
>>But AJAX calls from the extjs framework is not syncrounous. Eg. a page
>>load can fire numerous AJAX calls to the backend. To me it seems that
>>the gui takes the image list which is returned and then for each image
>>calls the backend method 'path'.
Pveproxy which handle the http request, use event programming, so only 1 thread with never more that 1 query running at the same time.
then, pveproxy is forwarding requests the pvedaemon, which use fork. So it should be also ok.
>>If this call to path last longer than
>>and, unknown to me, specified time the gui sends another call to the
>>backend even though a previous request has not returned yet with a
>>response.
Yes, this is the browser which do a retry for GET requests if a timeout occur.
----- Mail original -----
De: "Michael Rasmussen" <mir at datanom.net>
À: pve-devel at pve.proxmox.com
Envoyé: Mardi 13 Août 2013 22:52:18
Objet: Re: [pve-devel] Plugin to add support for native ZFS on shared storage
On Tue, 13 Aug 2013 04:08:08 +0000
Dietmar Maurer <dietmar at proxmox.com> wrote:
>
> I do not understand that description. We have a simple programming model using processes,
> so there are no threads involved. Specially, run_command() is syncrounous, so the output from one
> command cannot interfere with the output from another.
>
But AJAX calls from the extjs framework is not syncrounous. Eg. a page
load can fire numerous AJAX calls to the backend. To me it seems that
the gui takes the image list which is returned and then for each image
calls the backend method 'path'. If this call to path last longer than
and, unknown to me, specified time the gui sends another call to the
backend even though a previous request has not returned yet with a
response.
I cannot explain it in more details since I do not completely
know what is happening but try to install the plugin on two different
nodes, one with the last patch and one without and see for yourself. To
trigger the behavior at least 10 to 15 images needs to be on the
storage.
--
Hilsen/Regards
Michael Rasmussen
Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
Program defensively.
- The Elements of Programming Style (Kernighan & Plaugher)
_______________________________________________
pve-devel mailing list
pve-devel at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list