Question
· Dec 19, 2019

The message in Ensemble has been retained for only 20 days, but the amount of data is still more than 300G. What should be done to reduce the storage capacity?

The message in Ensemble has been retained for only 20 days, but the amount of data is still more than 300G. What should be done to reduce the storage capacity?
 

Discussion (3)0
Log in or sign up to continue

Hi

Remember that not only messages contribute to the volume of ensemble generated data. If you are using $$$TRACE in your production then this will generate a lot of data in the Ensemble namespace . If you have lots of TRACE statements then this can generate a lot of data.

There is a class method

do ##class(Ens.Purge).PurgeEventLogsByDate({NumberOfDaysToRetainTraceData},.count) There are other methods in this class to purge other management data such as messages

Trace information is stored in the global  ^Ens.Util.LogD and  ^Ens.Util.LogI

Nige;

Run %GSIZE if you see any orphan globals please kill ,or take necessary action.

Then go to 

1. Management portal

2. System Operation

3. Databases

4. Top left Corner - "Freespace "

5. You will see a list of dbs

6. every row extreme right you will see 2 links "compact" and "truncate"

7. First do a compact

8. check background job if successful Got to #9 else repeat #7

9. truncate the db