2016-09-28 5 views
1

NServiceBus 5.2.16을 사용하고 있으며 감사 로그 정리에 문제가 있습니다. ServiceControl 관리 유틸리티에서 감사 보존 기간은 30 일로 설정됩니다. 그러나 RavenDB 데이터베이스는 매일 계속 증가하고 있으며 ServiceInsight에서는 30 일 넘게 성공한 메일을 볼 수 있으므로 이전 메시지가 데이터베이스에서 삭제되지 않았을 것으로 판단됩니다. NServiceBus RavenDB 데이터베이스의 크기를 제한하려면 어떻게해야합니까?NServiceBus 감사 정리가 작동하지 않습니다.

+0

ServiceControl을 최신 버전으로 업데이트 할 수 있습니까? http://particular.net/downloads –

+0

나는 이미 최신 버전 (1.23)을 사용하고있다. 이 문제에 대한 특정 지원에 연락했습니다. 나는 그들에게서 어떤 정보라도 얻으면 업데이 트를 게시 할 것이다. –

+0

최신 버전을 사용하여이 문제를 발견했습니다. – Kye

답변

1

전체 Raven 데이터베이스를 삭제하고 ServiceControl을 다시 시작하여이 문제를 해결할 수있었습니다. 이렇게하면 새 데이터베이스가 생성 된 후 ServiceControl에 의해 오래된 감사 항목이 제대로 삭제됩니다.

특정 지원에서 유용한 정보를 얻었습니다. ServiceControl.exe.config 파일의 설정을 통해 감사 정리 프로세스를 제어 할 수 있습니다. 특히 ServiceControl/ExpirationProcessTimerInSecondsServiceControl/ExpirationProcessBatchSize 설정은 정리 프로세스를보다 자주 예약하거나 각 배치에서 삭제할 수있는 최대 항목 수를 늘릴 수 있으므로 유용합니다. 이러한 설정에 대한 자세한 내용은 NServiceBus documentation에서 확인할 수 있습니다.

또한하여 ServiceControl의 로그 파일에 정리 프로세스를 모니터링 할 수 있습니다. 그러나 먼저 로깅 상세 표시를 적어도 Info으로 늘려야합니다. 이는 ServiceControl.exe.config 파일의 ServiceControl/LogLevel 설정을 사용하여 수행 할 수 있습니다. 로그 수준을 변경하면 ServiceControl의 Logs 디렉토리에있는 파일과 비슷한 로그 항목이 표시됩니다.

2016-10-26 09:49:06.2652|77|Info|ServiceControl.Infrastructure.RavenDB.Expiration.SagaHistoryCleaner|Batching deletion of 0-499 sagahistory documents completed. 
2016-10-26 09:49:06.2808|77|Info|ServiceControl.Infrastructure.RavenDB.Expiration.SagaHistoryCleaner|Batching deletion of 500-715 sagahistory documents. 
2016-10-26 09:49:06.4996|77|Info|ServiceControl.Infrastructure.RavenDB.Expiration.SagaHistoryCleaner|Batching deletion of 500-715 sagahistory documents completed. 
2016-10-26 09:49:06.4996|77|Info|ServiceControl.Infrastructure.RavenDB.Expiration.SagaHistoryCleaner|Deleted 716 expired sagahistory documents. Batch execution took 11635ms 
2016-10-26 09:49:06.4996|77|Info|ServiceControl.Infrastructure.RavenDB.Expiration.ErrorMessageCleaner|No expired error documents found 
관련 문제