Skip to Content

Contributors

Reserved / priority worker

Hello,

I am going to provide some services very similar to what's available as IAP in 
Odoo so part of it is checking whether customer has got enough "credits". The 
easiest way would be to create a controller to handle this but I am afraid of 
situations where the server is occupied with different things like many users, 
etc.

Is there a way to "reserve" a worker for such kind of things? Or maybe somehow 
to give priority for processing such requests?

Any advise is welcome. Thank you

Best regards

	Radovan Skolnik



by Radovan Skolnik - 03:00 - 22 May 2023

Follow-Ups

  • Re: Reserved / priority worker
    Maybe a dedicated server for odoo e.g. in a docker - multiple odoo servers, a single postgres database ?
    so all calls for IAP are routed to this specific server

    Dominique 


    On Mon, 22 May 2023 at 21:02, Radovan Skolnik <notifications@odoo-community.org> wrote:
    Hello,
    
    I am going to provide some services very similar to what's available as IAP in 
    Odoo so part of it is checking whether customer has got enough "credits". The 
    easiest way would be to create a controller to handle this but I am afraid of 
    situations where the server is occupied with different things like many users, 
    etc.
    
    Is there a way to "reserve" a worker for such kind of things? Or maybe somehow 
    to give priority for processing such requests?
    
    Any advise is welcome. Thank you
    
    Best regards
    
    	Radovan Skolnik
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by dominique.k - 03:21 - 23 May 2023
  • Re: Reserved / priority worker

    and it references:

    https://github.com/dduarte-odoogap/docker_testing_environment/blob/master/docker-compose.yml


    On 2023-05-22 14:16, Radovan Skolnik wrote:
    Erik,
    
    thanks a lot. Will check it out. Best regards,
    
    	Radovan
    
    On pondelok 22. mája 2023 23:12:40 CEST Erik Myllymaki wrote:
    
    > I was just watching this video the other day that I thought did a good job
    
    > of explaining separate odoo instances for erp and cron:
    
    > 
    
    > https://www.youtube.com/watch?v=_q1MhVPKV5g
    
    > 
    
    > 
    
    > 
    
    > 
    
    > On 2023-05-22 14:06, Radovan Skolnik wrote:
    
    > 
    
    > Graeme,
    
    > 
    
    > thanks for the tip. You mean starting another instance over the same
    
    > database? I must admit I haven't poked the internals on how concurrent
    
    > access like this would work but if it worked, that would be quite easy.
    
    > 
    
    > Best regards,
    
    > 
    
    > 	Radovan
    
    > 
    
    > On pondelok 22. mája 2023 21:41:46 CEST Graeme Gellatly wrote:
    
    > > Should be easy enough, just start another odoo instance listening on a
    
    > > 
    
    > > different port or container. Configure reverse proxy to send those
    
    > > requests
    
    > > 
    
    > > to that instance. Its a fairly common setup already to have a seperate
    
    > > 
    
    > > instance for running crons, particular routes that need extra memory etc.
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > On Tue, 23 May 2023, 1:02 am Radovan Skolnik,
    
    > > 
    
    > > <notifications@odoo-community.org> wrote:
    
    > > 
    
    > > 
    
    > > 
    
    > > Hello,
    
    > > 
    
    > > 
    
    > > 
    
    > > I am going to provide some services very similar to what's available as
    
    > > IAP
    
    > > 
    
    > > in Odoo so part of it is checking whether customer has got enough
    
    > > 
    
    > > "credits". The easiest way would be to create a controller to handle this
    
    > > 
    
    > > but I am afraid of situations where the server is occupied with different
    
    > > 
    
    > > things like many users, etc.
    
    > > 
    
    > > 
    
    > > 
    
    > > Is there a way to "reserve" a worker for such kind of things? Or maybe
    
    > > 
    
    > > somehow to give priority for processing such requests?
    
    > > 
    
    > > 
    
    > > 
    
    > > Any advise is welcome. Thank you
    
    > > 
    
    > > 
    
    > > 
    
    > > Best regards
    
    > > 
    
    > > 	Radovan Skolnik
    
    > > 
    
    > > _______________________________________________
    
    > > 
    
    > > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > > 
    
    > > Post to: mailto:contributors@odoo-community.org
    
    > > 
    
    > > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > _______________________________________________
    
    > > 
    
    > > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > > 
    
    > > Post to: mailto:contributors@odoo-community.org
    
    > > 
    
    > > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > 
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by erik.myllymaki - 11:21 - 22 May 2023
  • Re: Reserved / priority worker
    Erik,
    
    thanks a lot. Will check it out. Best regards,
    
    	Radovan
    
    On pondelok 22. mája 2023 23:12:40 CEST Erik Myllymaki wrote:
    
    > I was just watching this video the other day that I thought did a good job
    
    > of explaining separate odoo instances for erp and cron:
    
    > 
    
    > https://www.youtube.com/watch?v=_q1MhVPKV5g
    
    > 
    
    > 
    
    > 
    
    > 
    
    > On 2023-05-22 14:06, Radovan Skolnik wrote:
    
    > 
    
    > Graeme,
    
    > 
    
    > thanks for the tip. You mean starting another instance over the same
    
    > database? I must admit I haven't poked the internals on how concurrent
    
    > access like this would work but if it worked, that would be quite easy.
    
    > 
    
    > Best regards,
    
    > 
    
    > 	Radovan
    
    > 
    
    > On pondelok 22. mája 2023 21:41:46 CEST Graeme Gellatly wrote:
    
    > > Should be easy enough, just start another odoo instance listening on a
    
    > > 
    
    > > different port or container. Configure reverse proxy to send those
    
    > > requests
    
    > > 
    
    > > to that instance. Its a fairly common setup already to have a seperate
    
    > > 
    
    > > instance for running crons, particular routes that need extra memory etc.
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > On Tue, 23 May 2023, 1:02 am Radovan Skolnik,
    
    > > 
    
    > > <notifications@odoo-community.org> wrote:
    
    > > 
    
    > > 
    
    > > 
    
    > > Hello,
    
    > > 
    
    > > 
    
    > > 
    
    > > I am going to provide some services very similar to what's available as
    
    > > IAP
    
    > > 
    
    > > in Odoo so part of it is checking whether customer has got enough
    
    > > 
    
    > > "credits". The easiest way would be to create a controller to handle this
    
    > > 
    
    > > but I am afraid of situations where the server is occupied with different
    
    > > 
    
    > > things like many users, etc.
    
    > > 
    
    > > 
    
    > > 
    
    > > Is there a way to "reserve" a worker for such kind of things? Or maybe
    
    > > 
    
    > > somehow to give priority for processing such requests?
    
    > > 
    
    > > 
    
    > > 
    
    > > Any advise is welcome. Thank you
    
    > > 
    
    > > 
    
    > > 
    
    > > Best regards
    
    > > 
    
    > > 	Radovan Skolnik
    
    > > 
    
    > > _______________________________________________
    
    > > 
    
    > > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > > 
    
    > > Post to: mailto:contributors@odoo-community.org
    
    > > 
    
    > > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > 
    
    > > _______________________________________________
    
    > > 
    
    > > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > > 
    
    > > Post to: mailto:contributors@odoo-community.org
    
    > > 
    
    > > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > 
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    
    
    

    by Radovan Skolnik - 11:16 - 22 May 2023
  • Re: Reserved / priority worker

    I was just watching this video the other day that I thought did a good job of explaining separate odoo instances for erp and cron:

    https://www.youtube.com/watch?v=_q1MhVPKV5g


    On 2023-05-22 14:06, Radovan Skolnik wrote:
    Graeme,
    
    thanks for the tip. You mean starting another instance over the same database? 
    I must admit I haven't poked the internals on how concurrent access like this 
    would work but if it worked, that would be quite easy.
    
    Best regards,
    
    	Radovan
    
    On pondelok 22. mája 2023 21:41:46 CEST Graeme Gellatly wrote:
    
    > Should be easy enough, just start another odoo instance listening on a
    
    > different port or container. Configure reverse proxy to send those requests
    
    > to that instance. Its a fairly common setup already to have a seperate
    
    > instance for running crons, particular routes that need extra memory etc.
    
    > 
    
    > 
    
    > On Tue, 23 May 2023, 1:02 am Radovan Skolnik,
    
    > <notifications@odoo-community.org> wrote:
    
    > 
    
    > Hello,
    
    > 
    
    > I am going to provide some services very similar to what's available as IAP
    
    > in Odoo so part of it is checking whether customer has got enough
    
    > "credits". The easiest way would be to create a controller to handle this
    
    > but I am afraid of situations where the server is occupied with different
    
    > things like many users, etc.
    
    > 
    
    > Is there a way to "reserve" a worker for such kind of things? Or maybe
    
    > somehow to give priority for processing such requests?
    
    > 
    
    > Any advise is welcome. Thank you
    
    > 
    
    > Best regards
    
    > 
    
    > 	Radovan Skolnik
    
    > 
    
    > 
    
    > 
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > 
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by erik.myllymaki - 11:11 - 22 May 2023
  • Re: Reserved / priority worker
    Graeme,
    
    thanks for the tip. You mean starting another instance over the same database? 
    I must admit I haven't poked the internals on how concurrent access like this 
    would work but if it worked, that would be quite easy.
    
    Best regards,
    
    	Radovan
    
    On pondelok 22. mája 2023 21:41:46 CEST Graeme Gellatly wrote:
    
    > Should be easy enough, just start another odoo instance listening on a
    
    > different port or container. Configure reverse proxy to send those requests
    
    > to that instance. Its a fairly common setup already to have a seperate
    
    > instance for running crons, particular routes that need extra memory etc.
    
    > 
    
    > 
    
    > On Tue, 23 May 2023, 1:02 am Radovan Skolnik,
    
    > <notifications@odoo-community.org> wrote:
    
    > 
    
    > Hello,
    
    > 
    
    > I am going to provide some services very similar to what's available as IAP
    
    > in Odoo so part of it is checking whether customer has got enough
    
    > "credits". The easiest way would be to create a controller to handle this
    
    > but I am afraid of situations where the server is occupied with different
    
    > things like many users, etc.
    
    > 
    
    > Is there a way to "reserve" a worker for such kind of things? Or maybe
    
    > somehow to give priority for processing such requests?
    
    > 
    
    > Any advise is welcome. Thank you
    
    > 
    
    > Best regards
    
    > 
    
    > 	Radovan Skolnik
    
    > 
    
    > 
    
    > 
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    > 
    
    > 
    
    > _______________________________________________
    
    > Mailing-List: https://odoo-community.org/groups/contributors-15
    
    > Post to: mailto:contributors@odoo-community.org
    
    > Unsubscribe: https://odoo-community.org/groups?unsubscribe
    
    
    
    
    

    by Radovan Skolnik - 11:05 - 22 May 2023