[FEATURE]:oceanbase plugin add direct path support #2283
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[desc]
The bypass import function has a very high processing efficiency in Oceanbase's big data synchronization, which greatly reduces the resource pressure on the client. close #2282
[Parameter description]
"directPath":"true", to enable bypass import,
"rpcPort":"", to set the port to be bypassed,
"parallel": number, the number of threads to be imported by bypass, the default is 1, the maximum is recommended not to exceed 100,
"heartBeatInterval": The number of heartbeats interval should be greater than 1000, but there is no default number,
"heartBeatTimeout": the number, the number of timeouts, and the difference between the heartbeat interval must be greater than 4000, but there is no default. These are bypass parameters, others are datax general parameters
"bufferSize":The size of the data slice by bypass is 1 MB(1048576) by default,The unit is bytes.
[example]
{ "job":{ "content":[ { "reader":{ "name":"mysqlreader", "parameter":{ "column":[ "column1", "column2", "column3", "column4", "column5" ], "username":"user", "password":"pass", "connection":[ { "database":"dataworks", "jdbcUrl":["jdbc:mysql://ip:port/db"], "table":[ "tablename" ] } ] } }, "writer":{ "name":"oceanbasev10writer", "parameter":{ "batchSize":2048, "column":[ "column1", "column2", "column3", "column4", "column5" ], "connection":[ { "database":"db", "jdbcUrl":"jdbc:oceanbase://ip:port/db", "table":[ "tablename" ] } ], "database":"db", "datasource":"db", "dbMode":"mysql", "directPath":"true", "jdbcUrl":"jdbc:oceanbase://ip:port/db", "password":"pass", "postSql":[], "preSql":[], "rpcPort":"rpcport", "subType":"", "bufferSize": 1048576, "parallel": 8, "table":"table", "username":"user", "writeMode":"insert" } } } ], "setting":{ "errorLimit":{ "record":"0" }, "globalConfig":{ "keepDateSamePrecision":false }, "logView":{ "logViewEnable":"true" }, "speed":{ "channel":2, "concurrent":2, "throttle":false } } } }