HBase Table Changes
3.1.0
Table creation scripts for 3.1.0:
Before You Start
Create the new HBase tables before changing table-related properties or starting upgraded components.
The property values shown below are the 3.1.0 defaults and use the new tables.
Upgrade Order
Create the new HBase tables.
Enable dual write for each feature (see each feature's Transition).
Switch reads to the legacy tables during migration (see each feature's Transition).
Run the copy APIs to migrate historical data, if supported.
Switch reads back to the new tables, if changed in step 3.
Disable legacy writes once the new tables are confirmed healthy.
Application & Agent List
Tables
ApplicationIndex is split into two new tables:
ApplicationIndex
Application, AgentId
Properties
Collector
Web
Batch
Transition
Collector: set
pinpoint.collector.application.index.v1.enabled=truefor dual write.Web: set
pinpoint.web.application.index.v1.enabled=trueto delete from the legacy table during migration.Web: set
pinpoint.web.application.index.read.v2=falseto read from the legacy table during migration.Batch: set
pinpoint.batch.application.index.read.v2=falseto read from the legacy table during migration.
Data Migration
Application & Agent List supports historical data migration through Web copy APIs.
/api/admin/copy/applications
Copy all application index data
/api/admin/copy/agents/all
Copy all agent index data, using more time and resources
/api/admin/copy/agents?durationDays=30
Copy agent index data for recent durationDays
/api/admin/copy/agents?applicationName=app
Copy agent index data for a specific applicationName
/api/admin/copy/agents?serviceTypeCode=1000
Copy agent index data for a specific serviceTypeCode
Notes:
Copy APIs are exposed on the Web component.
Agent copy APIs use the
AgentInfotable; Java agents sendAgentInfoperiodically, sodurationDayscan include long-running active agents.Some agents may not send
AgentInfoperiodically; useserviceTypeCodefor them.durationDaysand/agents/allcopy a wider range of data, so they may take longer to complete.applicationNameandserviceTypeCodecopy the least required data.
Example:
ServerMap
Tables
ApplicationMapStatisticsSelf_Ver2 is split into two new tables:
HostApplicationMap_Ver2
MapAppHost
ApplicationMapStatisticsCaller_Ver2
MapAppOut
ApplicationMapStatisticsCallee_Ver2
MapAppIn
ApplicationMapStatisticsSelf_Ver2
MapAppSelf, MapAgentSelf
Properties
Collector
Web
Transition
Collector: set
pinpoint.modules.uid.version=dualfor dual write.Web: set
pinpoint.modules.uid.version=v2to read from the legacy tables during migration.
TraceIndex
Tables
ApplicationTraceIndex
TraceIndex
Properties
Collector
Web
Transition
Collector: set
pinpoint.collector.application.trace.index.v1.enabled=truefor dual write.Web: set
pinpoint.web.trace.index.read.v2=falseto read from the legacy table during migration.
Last updated
Was this helpful?