How to configure Initial Load by using ricds?

Source: Internet
Author: User

How to configure Initial Load by using ricds?

Trigger has a type of Dead Trigger, which has many usage instructions. You can refer to its definition. One of them is to restore the initial load of a one-way synchronization table. That is to say, to initiate an initial load, you need to create a Dead Trigger.

1. Create a channel

insert intosym_channel(channel_id,processing_order, max_batch_size, enabled, description)values('sale_transaction', 1, 100000, 1,'sale_transactional data from register and back office');

2. Create a Dead Trigger and add the table for the initial load to the channel. The direction of the initial load is unidirectional.

insert intosym_trigger(trigger_id,source_table_name,channel_id,sync_on_insert, sync_on_update, sync_on_delete, last_update_time,create_time)values('sale_transaction_dead','sale_transaction','sale_transaction',0,0,0,current_timestamp,current_timestamp);

3. Create a Router

insert intosym_router(router_id,source_node_group_id,target_node_group_id,router_type,create_time,last_update_time)values('store_2_corp', 'store', 'corp','default',current_timestamp, current_timestamp);

4. Create a trigger-router combination

insert intosym_trigger_router(trigger_id,router_id,initial_load_order,last_update_time,create_time)values('sale_transaction_dead','store_2_corp', 200,current_timestamp, current_timestamp);

After four steps above, after one node is registered to another, the next step is the initial load process. To load data again, run the following command on the node that outputs data during the initial load process:

../bin/symadmin --engine corp-000reload-node 001

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.