{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/canal/issues/993","repository_url":"https://api.github.com/repos/alibaba/canal","labels_url":"https://api.github.com/repos/alibaba/canal/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/canal/issues/993/comments","events_url":"https://api.github.com/repos/alibaba/canal/issues/993/events","html_url":"https://github.com/alibaba/canal/issues/993","id":368974488,"node_id":"MDU6SXNzdWUzNjg5NzQ0ODg=","number":993,"title":"对特定的instance指定xxx-instance.xml","user":{"login":"yudianer","id":12033023,"node_id":"MDQ6VXNlcjEyMDMzMDIz","avatar_url":"https://avatars3.githubusercontent.com/u/12033023?v=4","gravatar_id":"","url":"https://api.github.com/users/yudianer","html_url":"https://github.com/yudianer","followers_url":"https://api.github.com/users/yudianer/followers","following_url":"https://api.github.com/users/yudianer/following{/other_user}","gists_url":"https://api.github.com/users/yudianer/gists{/gist_id}","starred_url":"https://api.github.com/users/yudianer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yudianer/subscriptions","organizations_url":"https://api.github.com/users/yudianer/orgs","repos_url":"https://api.github.com/users/yudianer/repos","events_url":"https://api.github.com/users/yudianer/events{/privacy}","received_events_url":"https://api.github.com/users/yudianer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-11T06:43:41Z","updated_at":"2018-10-11T10:45:55Z","closed_at":null,"author_association":"NONE","body":"请问,\r\n假如现在有两个实例: `conf/instance1/instance.properties`   `conf/instance2/instance.properties `\r\n那么如何为它们分别指定`conf/spring/` 中不同的xml 配置?"},"comment":{"url":"https://api.github.com/repos/alibaba/canal/issues/comments/428909288","html_url":"https://github.com/alibaba/canal/issues/993#issuecomment-428909288","issue_url":"https://api.github.com/repos/alibaba/canal/issues/993","id":428909288,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODkwOTI4OA==","user":{"login":"yudianer","id":12033023,"node_id":"MDQ6VXNlcjEyMDMzMDIz","avatar_url":"https://avatars3.githubusercontent.com/u/12033023?v=4","gravatar_id":"","url":"https://api.github.com/users/yudianer","html_url":"https://github.com/yudianer","followers_url":"https://api.github.com/users/yudianer/followers","following_url":"https://api.github.com/users/yudianer/following{/other_user}","gists_url":"https://api.github.com/users/yudianer/gists{/gist_id}","starred_url":"https://api.github.com/users/yudianer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yudianer/subscriptions","organizations_url":"https://api.github.com/users/yudianer/orgs","repos_url":"https://api.github.com/users/yudianer/repos","events_url":"https://api.github.com/users/yudianer/events{/privacy}","received_events_url":"https://api.github.com/users/yudianer/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T10:45:55Z","updated_at":"2018-10-11T10:45:55Z","author_association":"NONE","body":"@littleneko 在一个server中开启两个instance. 为一个instance指定配置.\r\n\r\n在应用扩展貌似中给出了答案:\r\nhttps://github.com/alibaba/canal/wiki/DevGuide#%E5%BA%94%E7%94%A8%E6%89%A9%E5%B1%95\r\n\r\n1. 在`conf` 中创建新实例属性文件 `new-instance/instance.properties`\r\n2. 新建 xml 配置文件 `spring/custom-instance.xml`\r\n3. canal.properties 中指定 `canal.instance.new-instance.spring.xml = classpath:spring/custom-instance.xml`\r\n如果 canal.properties 没有设置自动扫描(canal.auto.scan = true, 开启自动扫描), 需在 canal.properties 中指定: canal.destinations= example, new-instance\r\n---------------------------------------\r\n这里的\"通道名称\" 是指的instance名称? 还是什么?\r\n但是`canal.instance.destination` 这个占位符的作用是什么? 如何使用?\r\n谢谢大佬!\r\n"}}
{"actor":{"display_login":"yudianer"}}