Re: [PVE-User] Simultaneous API call

2016-02-13 Thread Mohamed Sadok Ben Jazia
Hello, to describe my purpose, i'm supposed to create a commercial plateform for providing IAAS and PAAS using proxmox. For this step, i'm planning to develop a full API for third pary users, the development will be done in PHP as start. The API will contain 3 main parts (clustering and managing

Re: [PVE-User] Simultaneous API call

2016-02-13 Thread ad...@extremeshok.com
Might be easier to just use the module garden proxmox modules for whmcs. Instead of reinventing the wheel Sent from my iPhone > On 13 Feb 2016, at 1:36 PM, Thomas Lamprecht wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi, > > Al 13.02.2016 a

Re: [PVE-User] Simultaneous API call

2016-02-13 Thread Mohamed Sadok Ben Jazia
I see you didn't approve the fact that API calls an API, i see that it's a necessity especially for handling the multi host and multi node in case we install proxmox in different datacenters. Thank you for your answer, i care about the answer, not the act of being direct or not. Anycase, can you

Re: [PVE-User] Simultaneous API call

2016-02-13 Thread Thomas Lamprecht
Hi, can you show a (simple) example how you do it? Are you making next id calls from all over the cluster (in parallel)? If you're doing it in serial like: new_vmid = call-to-nextid(); create-ct(new_vmid) you're fine, doing parallel calls you get race conditions and atomicity violations.