#2495 [RFE] Add statisitcs to the output of the migrate-ds command
Closed: Fixed None Opened 12 years ago by dpal.

The ipa migrate-ds performs migration without any output about the following information:
- How many entries are loaded so far
- How many entries were not loaded due to errors
- How much time did it take

I suggest we add a parameter, for example --stats=<number> where number denotes number of entries after which to report the statistics. For example --stats=1000 will output statistics every 1000 entries. The output might look like something like this:

Chunk, Entries, Time, Success, Failure
1, 1000, 5.34, 934, 66
2, 1000, 5.03, 891, 109
3, 389, 2.71, 380, 9

The output can be easily then put into the Calc and analyzed. We would be able to see: the process of load (that it is doing something), whether the the load slows down, whether it is successful and so on. Such stats will be very valuable during pilot and product evaluation when admin assesses what it would take to migrate to IPA.


An idea to do this without async may be to add a migrate_status command that can be run periodically to get a status of things. How we would tie this into the migrate-ds command or run the migrate-ds in the background I'm not entirely sure yet, would probably require a forward() method.

Thanks for the report. Adding continuous migration status to the "ipa migrate-ds" command is not practical, as IPA commands return after they are completed (i.e. migration finishes).

However, #3386 added continuous logging to /var/log/httpd/error_log, where one can track the progress of migration. If this is not sufficient, please file RFE for improving this log file.

Metadata Update from @dpal:
- Issue assigned to rcritten
- Issue set to the milestone: FreeIPA 3.2 - 2013/02

7 years ago

Login to comment on this ticket.

Metadata