Re: Controlling load
Date: Wed, 22 Feb 2023 09:36:30 +0530
Message-ID: <CAEzWdqd_pqYpzXx_nq3r2CewXNZtjevHN53eARjTzw_WyPdaFg_at_mail.gmail.com>
Thank you Andy.
I have never used the DB resource consumer group in our databases though.
But going through the doc, it seems it can be set for many number of input
parameters and also on many resources. Yet to test it , however In most
cases I see it's set on amount of cpu. So in our case will it be good idea
to determine the cpu percentage and define the plan or we can do it on
number of average active sessions which will be again hardcoded value only.
We need to set it for multiple input program values in our case. If you
can pass on reference to some sample doc with its exact code
implementation, that would be great.
On Wed, 22 Feb, 2023, 2:11 am Andy Sayer, <andysayer_at_gmail.com> wrote:
> You can set up resource manager to map different programs to different
> resource consumer groups. You’ll need to make sure you order the priority
> of mapping to make sure program is checked before service name (if that’s
> not the default). It’s all in dbms_resource_manager
>
> Thanks,
> Andy
>
> On Tue, Feb 21, 2023 at 12:19 PM, yudhi s <learnerdatabase99_at_gmail.com>
> wrote:
>
>> Hello Listers,
>> On a normal day, we see sessions/AAS per ~1 minute interval as ~50 in
>> this database. and they are mainly from two specific 'programs' (say e.g.
>> prog_batch, prog_online). But during certain periods of the day we saw a
>> large number of sessions with programs as 'prog_batch' (i.e. with AAS>~500)
>> flooding the database and we are seeing large concurrency waits, bct buffer
>> space waits all over the database. And its impacting critical sessions of
>> other programs i.e. prog_online. So considering 'prog_batch' is meant for
>> batch kind of processes and it's okay for those sessions to queue-up and
>> run a few minutes longer, but at the same time we can't afford to impact
>> the sessions from prog_online, as those are latency sensitive online users.
>> But we found both of these programs are pointing to the same database
>> services and running on the same node-1. So , apart from controlling the
>> number of sessions/connections from the application end, can we do some
>> easy fixes with regards to the service config level, which will better
>> control the incoming load? Or say putting some cap on the incoming sessions
>> from prog_batch?
>> This is a 19C database with 2 node RAC and its an Exadata machine. Each
>> node is a 48 core, 2 socket. Both the programs were using the same service
>> and having preferred nodes as node-1.
>>
>> Regards
>> Yudhi
>>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Feb 22 2023 - 05:06:30 CET