LoginSignup
1
1

More than 5 years have passed since last update.

vCenter Server Appliance 6.5でタスクとイベントが削除されるタイミング

Posted at

vCenter Server 5.5 まではタスクとイベントの保持期間を設定していると、6時間毎(3時、9時、15時、21時)に削除が実行されていたけど、vCenter Server Appliance 6.5 だとどうなんだろうと思ったので調べました。

環境

  • vCenter Server Appliance 6.5(build-5973321)
  • vpostgresを使用
  • タスクとイベントの削除はデフォルトで有効化されている キャプチャ.PNG

調査

タスクとイベントの削除はvpostgresのcleanup_events_tasks_proc()ファンクションで実行している。

以下、cleanup_events_tasks_proc()より抜粋

Purpose:

This procedure cleans up events and tasks older than a configured
maximum age, if the corresponding enabling flags are set to true.

The cleanup is performed in a loop, 1000 events and tasks at a
time, in order to avoid a huge hit on the database the first time
this feature is enabled.

vCenter Serverのログ(vpxd.log)を確認

root@vcsa65 [ /storage/log/vmware/vpxd ]# find ./ -type f -print | sort -n | xargs grep -i cleanup_events_tasks
./vpxd-23.log:2017-08-20T09:15:00.008+09:00 error vpxd[7FFBDDB36700] [Originator@6876 sub=Default] [VdbStatement] SQL execution failed: select cleanup_events_tasks_proc()
./vpxd-23.log:--> Error while executing the query" is returned when executing SQL statement "select cleanup_events_tasks_proc()"
./vpxd-23.log:--> Error while executing the query" is returned when executing SQL statement "select cleanup_events_tasks_proc()"
./vpxd-30.log:2017-08-21T09:15:00.008+09:00 error vpxd[7FFBDD830700] [Originator@6876 sub=Default] [VdbStatement] SQL execution failed: select cleanup_events_tasks_proc()
./vpxd-30.log:--> Error while executing the query" is returned when executing SQL statement "select cleanup_events_tasks_proc()"
./vpxd-30.log:--> Error while executing the query" is returned when executing SQL statement "select cleanup_events_tasks_proc()"
./vpxd-36.log:2017-08-22T09:15:00.008+09:00 error vpxd[7FFBDF468700] [Originator@6876 sub=Default] [VdbStatement] SQL execution failed: select cleanup_events_tasks_proc()
./vpxd-36.log:--> Error while executing the query" is returned when executing SQL statement "select cleanup_events_tasks_proc()"
./vpxd-36.log:--> Error while executing the query" is returned when executing SQL statement "select cleanup_events_tasks_proc()"

cleanup_events_tasks_proc()が毎日9時15分に実行されているので、恐らくこの時間にタスクとイベントの削除が実行されている。
(エラーが出ているのは恐らく30日より前のタスクとイベントが存在しないからと思います)

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1