Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
  • 1.  PAaaS load balance

    Posted 4 days ago

    Hi good morning

    As far as I understood, we have automatic database replication with PAaaS, but there are not any load balance between these replicas so far. Are there plans for changing that, some enhancement planned? When we create a database replica, all the tasks to balance load are up to users / customer tailor made?

    Regards

    Márcio



    ------------------------------
    Marcio Costa
    ------------------------------


  • 2.  RE: PAaaS load balance

    Posted 4 days ago

    Hi

    While i read the documentation I realized that all the work is made by OpenShift, I mean, it is not possible to actively decide which replica will get the job or not, because necessarily there is a leader which deals with all the writes and synchronization.

    But what about MDX queries? Are them at least run in parallel or balanced between replicas? Is there any round-robin taking place between replicas in the case of read-only quests?

    Regards

    Márcio



    ------------------------------
    Marcio Costa
    ------------------------------



  • 3.  RE: PAaaS load balance

    Posted 3 days ago

    Hi Marcio,

    In TM1 it is actually the daemon service that decides which request goes to which replica of a database. And you are right, any request not deemed idempotent in essence goes to the leader replica, all other requests, like executing MDX queries, already get spread across all replicas that are up to date at the time of the request. This means that in a system with a lot of updates all the time more load ends up on the leader whereas systems with barely any updates, if at all, request load gets spread pretty evenly.

    Cheers,

    -H



    ------------------------------
    Hubert Heijkers
    STSM, Program Director TM1 Functional Database Technology and OData Evangelist
    ------------------------------



  • 4.  RE: PAaaS load balance

    Posted 3 days ago

    Thanks for the answer Hubert - this clarified my initial understanding.

    Regards

    Márcio



    ------------------------------
    Marcio Costa
    ------------------------------



  • 5.  RE: PAaaS load balance

    Posted 3 days ago

    A final question here - rules and feeders processing can be seen as idempotent, as its final results are the same no matter what replica is processing them, right?



    ------------------------------
    Marcio Costa
    ------------------------------



  • 6.  RE: PAaaS load balance

    Posted 3 days ago

    Rules are only processed during query time and as such only influence 'snapshots' of the data, feeders on the other hand are executed as part of update processes but in the case of a v12 replica those end up being executed as updates are made, either on the leader as a result of an update or on a follower as a result of applying the changes made on the leader first.



    ------------------------------
    Hubert Heijkers
    STSM, Program Director TM1 Functional Database Technology and OData Evangelist
    ------------------------------



  • 7.  RE: PAaaS load balance

    Posted 3 days ago

    Thanks, understood.

    Regards



    ------------------------------
    Marcio Costa
    ------------------------------



  • 8.  RE: PAaaS load balance

    Posted 2 days ago

    Cache is managed separately though and does not span replicas: https://www.linkedin.com/pulse/deep-dive-caching-new-planning-analytics-engine-ryan-clapp-oupge/



    ------------------------------
    Ryan Clapp
    ------------------------------



  • 9.  RE: PAaaS load balance

    Posted 16 hours ago

    Thanks Ryan I really appreciated your article. Nice to know all these subtleties.



    ------------------------------
    Marcio Costa
    ------------------------------