gpt4 book ai didi

sql-server - 同时触发的 SSRS 报告订阅是否同时运行?

转载 作者:行者123 更新时间:2023-12-03 02:02:48 25 4
gpt4 key购买 nike

如果您有多个报表订阅被设置为同时触发,那么所有这些报表订阅都会同时启动并同时运行吗?也就是说,如果您在特定时间安排了太多报告,它们就会面临耗尽太多系统资源并失败的风险?

共享订阅的功能是否有所不同?

我对任何版本的 SSRS 的答案都很感兴趣,因为我的组织使用 SSRS 2005、2008、2008 R2 和 2012 来管理环境。

我尝试搜索 MSDN 和 google,但没有找到任何明确的信息。我可以想象,单独的计划都会同时触发并立即运行(竞争系统资源),因为 SSRS 旨在同时按需运行报告。但我可以想象共享订阅可以将报告排队以按顺序运行的场景。

是否有任何方法可以全局限制可以发生的并发报告运行的数量?我知道您可以在 RSServerConfig 文件中针对每个用户进行限制。

最佳答案

我发现了一些有趣的信息,解释了 SSRS 如何处理计划订阅:

When you create a subscription several things are added to the RSserver:

  • A row is placed in the Subscriptions table…

  • A row is placed in the Schedule and ReportSchedule tables…

  • A SQL Server Agent job is created…

When the subscription runs several things happen:

  • The SQL Server Agent job fires and puts a row in the Event table…

  • The RS server service has a limited number of threads (2 per CPU) that poll the Event table…

  • When it finds an event, it puts a row in the Notifications table and starts processing…

如果来自:Troubleshooting Subscriptions: Part II...

(如果我没看错的话...)在处理订阅时,报告服务将同时运行服务器中内核数量的两倍。 (例如,如果您有双核计算机,RS 将同时运行 4 个报告订阅。)

我将暂时保留这个问题,以防其他人有更多信息......

关于sql-server - 同时触发的 SSRS 报告订阅是否同时运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21978908/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com