Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
Expand all | Collapse all

Routing Rules Precedence

  • 1.  Routing Rules Precedence

    Posted Wed October 25, 2023 10:38 AM
    Edited by Marc Reed Wed October 25, 2023 11:03 AM

    Is there any official documentation on Routing Rules precedence.

    For example, I have a routing rule that sends Sales reports to Server A. I have another rule that sends Finance Users to Server B.

    If a Finance user runs a Sales report, which server will they be sent to?

    With my limited testing, it doesn't appear to be as simple as rule ordering. For example, if I set up rule 1 to route the Everyone role to Server A, and rule 2 as a datasource to Server B. Then running a report against the specified data source hits server B.

    If it was as simple as rule orders, then everyone (and any report they run) should go to server A.

    So is there some kind of precedence rules? Check to see if data source matches, if not then check roles, if not check groups?

    Edited to add....

    In some versions of the documentation this little nugget appears:  https://www.ibm.com/docs/el/cognos-analytics/11.2.0?topic=dr-setting-routing-rules-dispatchers

    However, this isn't in all 11.2 documents.

    My limited testing also implies that this isn't how it works.

    ------------------------------
    Marc Reed
    ------------------------------



  • 2.  RE: Routing Rules Precedence

    Posted Thu October 26, 2023 02:09 PM

    Hi,

    I have only used the routing rules for groups.

    Using only for user groups, the order on the configuration page is respected top-down.

    However, there is a problem, routing rules do not work for dashboards. I've already opened a ticket and support responded to me begrudgingly, saying that it's normal behavior, despite me saying that it works for datasets and data modules. Also, it would have to work for dashboards, Cognos has always been like that anyway.

    Regards,



    ------------------------------
    JEAM COELHO
    Cognos Solution Architect

    LinkedIn: https://www.linkedin.com/in/jeamcoelho/
    ------------------------------



  • 3.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 03:38 AM

    Hi together,

    I also know that Cognos processes routing rules top to bottom until the first routing rule applies to the scenario. 

    Using the Everyone group for a routing rule on top may break the logic for rules as then no other rule would be used. Maybe Cognos is ignoring those rules? I don't know. In my setup I have two routing rules and they are processed top-down. Checked that with different scenarios. I'm on 11.1.7 FP6.

    What I cannot confirm is that routing rules do not work for dashboards. In my environment they do! The different dispatchers are tied to routing rules which use user roles. I have to send all users with an Analytics Viewer license (to use dashboards) to a distinct dispatcher. Works great.



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 4.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 05:43 AM

    Hi, Robert.

    I'm sorry, but they don't work. I proved this to IBM support and developers.

    In my case, as I have 8 servers, I'm using Cognos Gateway with Apache, loading the cognos-load-balance configuration. This can mask the effects of this issue.

    In the case of the dashboard, Cognos always runs it in the dispatcher that you connected to, that is, it was directed by Apache. The behavior is the same if you access the dispatcher directly.

    There is a simple test you can see this happening. You will see that the routing rule works in the report, but not in the dashboard.

    - Create a blank dashboard, with any module as datasource.
    - Then create a calculation with the following expression:

    #sq( getConfigurationEntry ('externalDispatcher' ))#

    - Drag this calculation to your dashboard and save.

    - Create a list report, using the same data source as the panel.
    - Create a data item with the same calculation

    #sq( getConfigurationEntry ('externalDispatcher' ))#

    - Drop this calculation on the report page and save.

    Now let's go to the tests. Remembering that accessing through the gateway can confuse you with the results, let's access the dispatchers through their URL.

    - Access the DISPATCHER_B URL (http://dispacther_b:9300/bi), using a user that should be routed to DISPATCHER_A
    - Run the report many times. You will see that the execution is routed to DISPATCHER_A.
    - Run the dashboard. You will see that it was executed by DISPATCHER_B, always.

    Continuing the tests:

    - Access the DISPATCHER_A URL (http://dispacther_a:9300/bi), using a user that should be routed to DISPATCHER_B
    - Run the report many times. You will see that the execution is routed to DISPATCHER_B.
    - Run the dashboard. You will see that it was run by DISPATCHER_A, always.

    In summary, the behavior is as follows:

    Routing rules work for the report. However, the dashboard is always executed by the dispatcher you connected to.



    ------------------------------
    JEAM COELHO
    Cognos Solution Architect

    LinkedIn: https://www.linkedin.com/in/jeamcoelho/
    ------------------------------



  • 5.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 07:10 AM

    Hi Jeam,

    thank you for your additional information re gateway with Apache and your testings.

    I've tested the setup here with 11.1.7 like you've suggested with #sq( getConfigurationEntry ('externalDispatcher' ))# in a dashboard and I have to confirm my initial quote: it still works! I log in as regular user and dispatcher A comes up in the dashboard. When I use another special user configured to use the second dispatcher, I see exactly that dispatcher URL in the same dashboard.

    So: this could be something that happens due to your usage of an Apache gateway whilst I'm using IIS. We also do not (never ever) let our users access Cognos via any direct dispatcher URL. It's always the IIS gateway. Maybe that's a reason why it works perfectly on our end.



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 6.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 09:01 AM

    Hi, Robert!

    In fact, the web server/gateway is not a problem. But as they have their balancing algorithm, they can mask it.

    Did you run the tests directly accessing the dispatcher URL, without going through the gateway?

    BTW, I'm in CA 11.2.1 zLinux.



    ------------------------------
    JEAM COELHO
    Cognos Solution Architect

    LinkedIn: https://www.linkedin.com/in/jeamcoelho/
    ------------------------------



  • 7.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 09:25 AM

    Hi Jeam,

    yes I also run the test directly using both dispatcher URLs. Now it depends on how I point to the dispatchers. The routing rules work with FQDN URLs only, but if I use the short ones it's always the second dispatcher which executes the queries. Have you checked on the dispatcher URLs in your browser and the ones in your Cognos Configuration? Both dispatchers run on Windows Server OS here.



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 8.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 10:27 AM

    Hi Robert,

    I'm using FQDN too, browser and Cognos Configuration. I have tested with IBM support and they see the same behavior that I'm getting.

    It's strange that Cognos is differentiating the URL you enter in the browser, it shouldn't do that. Cognos should only go by its own settings.

    Did you try run dashboard several times to see behavior? 



    ------------------------------
    JEAM COELHO
    Cognos Solution Architect

    LinkedIn: https://www.linkedin.com/in/jeamcoelho/
    ------------------------------



  • 9.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 10:39 AM

    Hi Jeam,

    yep I reproduced the setting a few times and it repeats as described. Routing rules via IIS gateway and FQDN dispatcher seems to work properly. Sorry that I can't give you more hints about this issue but I'll keep an eye on that when we upgrade to V12.



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 10.  RE: Routing Rules Precedence

    Posted Fri October 27, 2023 10:44 AM

    Hi Robert,

    I appreciate that!


    Thank you!



    ------------------------------
    JEAM COELHO
    Cognos Solution Architect

    LinkedIn: https://www.linkedin.com/in/jeamcoelho/
    ------------------------------



  • 11.  RE: Routing Rules Precedence

    Posted Mon October 30, 2023 04:36 AM

    It looks that whilst IBM have incorporated Routing Sets into the the new Glass interface, they need to have a thing about the fundamentals of routing sets. The tech seems to be based on the old days of reports with a single datasource. But these days we have:

    1. Dashboards with multiple data sources
    2. Reports with multiple data sources 
    3. User created data

    Given that a report is sent to a dispatcher - what would happen if it contained a data source sent to dispatcher A and a datasource sent to dispatcher B?

    To comment on my routing rule for the Everyone group...In the old world all your data would be FM packages. You would set up routing sets for these known FM packages. You could be guaranteed you would have routing rules defined for all your data. Now that users can create their own datasources (their own data modules, copies of data modules uploaded files etc), there is a potential for there to be data that isnt in a routing rule, so you could end up with reports being sent to 'round robin' servers. I want a catch all rule so that any user created data is sent to a catchall server. Hence using the everyone group.

    I know that the everyone Group would be the last rule I want to be checked. Hence the question about precedence. I was testing precedence by placing this first just to see if there was any precedence rule.

    I think I'll open a support call to get the official word - then I can raise a few bugs.



    ------------------------------
    Marc Reed
    ------------------------------



  • 12.  RE: Routing Rules Precedence

    Posted Mon October 30, 2023 04:45 AM

    Hi Marc,

    I agree with your setup. If you want to be sure with all users, you have to use the Everyone group - or create your own equivalent. This rule then should be the last one on the list.

    I'm in the comfort position to be in full control of all data sources in my Cognos systems and they are all 100% FM packages with reports and dashboards linked always to one definite package. This makes things way much easier re routing rules.

    When you get an answer from IBM, please post it here for the community. Thanks a lot.



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 13.  RE: Routing Rules Precedence

    Posted Thu November 02, 2023 01:13 PM

    For anyone interested, here is the IBM reponse on routing rules...



    ------------------------------
    Marc Reed
    ------------------------------



  • 14.  RE: Routing Rules Precedence

    Posted Thu November 02, 2023 02:17 PM

    Love it, thanks for doing the dirty work, Marc!



    ------------------------------
    Shawn Lamson
    ------------------------------



  • 15.  RE: Routing Rules Precedence

    Posted Fri November 03, 2023 04:12 AM

    Hi Marc,

    thanks a lot for contacting IBM. The reply underlines my own test results when I was playing around with routing rules. When no routing rule applies, the round robin mode will be used. The answers from IBM encourage me to keep my 1:1 rule for data package and report/dashboard. I'm not a big fan of linking multiple packages or data modules in a dashboard or report.



    ------------------------------
    Robert Dostal
    Team Leader BI
    GEMÜ
    Ingelfingen
    ------------------------------



  • 16.  RE: Routing Rules Precedence

    Posted Tue January 02, 2024 06:59 AM

    I have got some response from IBM regarding one of the questions I aasked - report routing when a report has multiple data sources...



    ------------------------------
    Marc Reed
    ------------------------------