What is the default schedule for the default CRM 2011 maintenance jobs?

痴心易碎 提交于 2019-12-08 02:27:52

问题


I have a CRM 2011 installation that experiences a huge spike in I/O at a certain time of day (11 am). I have a good suspicion that it's the default Rebuild Index Job.

Everything is at default values, and the latest applied update is RU13. Sql is sql 2008 r2, sp1.

I've found this MSDN blog and also other sources suggesting updating the default job's schedule to run at night, or not at all.

But I haven't been able to find what is the default schedule for these default CRM jobs. I understand they are executing daily, but when? at 1am, 1pm, 1h after service start?

Also, is there a way to view execution history?


回答1:


Dynamics CRM 2011 Asynchronous Service regularly executes multiple internal maintenance jobs for each organization (database) and that these are scheduled initially at the time of organization creation on default frequencies (daily, monthly, etc.). Hopefully, you're also aware of the need to reschedule these jobs to execute during non-peak usage hours so as to minimize impact on system performance

You can find more details in this MSDN blog

The interesting comment there from Austin give you some insight.

MSCRM_CONFIG.[dbo].ScalegroupOrganizationMaintenanceJobs table keeps track of LastResultCode and LastRunTime

Useful query:

select
LastRunTime,
CASE OperationType
       WHEN 14 THEN 'DeletionService'
       WHEN 15 THEN 'IndexManagement'
       WHEN 30 THEN 'ReindexAll'
       WHEN 32 THEN 'CleanupInactiveWorkflowAssemblies'
       WHEN 40 THEN 'GoalRollup'
END OperationType, OperationType,
enabled, ExecutionTime,LastResultCode,LastResultData
,MaintenanceWindowEndTime,MaintenanceWindowStartTime, ModifiedOn
,NextRunTime,RecurrencePattern, RecurrenceStartTime, StartedOn, State, IsDeleted

from ScaleGroupOrganizationMaintenanceJobs
order by LastRunTime desc



回答2:


I remember finding the answer to this a long time ago, but I can't find the link now. The jobs' default schedule depends on when in the day you originally installed Dynamics. IIRC, the jobs are scheduled to start 24 hours after installation. This is kind of a silly default since most would install it in the middle of the workday, but that's why they recommend that you change it to be more appropriate for your business schedule.



来源:https://stackoverflow.com/questions/47947854/what-is-the-default-schedule-for-the-default-crm-2011-maintenance-jobs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!