Como alterar a URL do Symmetrics?
-
O symmetrics utiliza o arquivo de configuração
c:\symmetric\conf\symmetric.propertiespara armazenar a URL do nó que é a central (cada nó é um servidor envolvido na centralização, filial ou central).A seguinte imagem ilustra o funcionamento:

Quando houver a necessidade de se alterar a URL, isso deve ser feito em todos os nós (servidores), tanto no arquivo
symmetric.propertiesquanto diretamente no banco de dados.:star: Primeiramente pare o serviço do symmetrics no servidor que for fazer a alteração e procure iniciar sempre pela central.
1 - Alterando no arquivo de configuração
symmetric.properties:- Na filial localize e altere somente a seguinte linha:
# This is the URL this node will use to register and pull it's configuration. # If this is the root server, then this may remain blank and the configuration # should be inserted directly into the database # Tags: init registration.url=http://letrasesabores.noip.me:31415/sync- Na central localize e altere somente a seguinte linha:
# This is the URL this node will use to register and pull it's configuration. # If this is the root server, then this may remain blank and the configuration # should be inserted directly into the database # Tags: init registration.url= # The url that can be used to access this SymmetricDS node. # The default setting of http://$(hostName):31415/sync should be # valid of the standalone launcher is used with the default settings # The tokens of $(hostName) and $(ipAddress) are supported for this property. # Tags: init sync.url=http://letrasesabores.noip.me:31415/sync2 - Alterando no banco de dados:
- Tanto na central quanto na filial rodar o seguinte comando no banco de dados
"AutomatizeDB":
update sym_node set sync_url = 'http://letrasesabores.noip.me:31415/sync' where node_id='00000':fire: Cuidado com esse procedimento, siga atentamente os passos acima.
:fire: Nos exemplos é usado a URLhttp://letrasesabores.noip.me, cuidado para não usar ela por acidente em outro cliente. -
O comando que roda no banco
update sym_node set sync_url = ‘http://chocoplanalto.ddns.net:31415/sync’ where node_id=‘00000’na parte: node_id=‘00000’
Precisa colocar algum ID para cada servidor?? -
Não. Pelo que entendi, o intuito é alterar o endereço da central. Neste caso a central é o id ‘00000’, e deve ser executado em todos os nós (servidores), central e filial(is). Como foi somente este endereço que mudou, não há necessidade de trocar o valore de node_id.
-
Não. Pelo que entendi, o intuito é alterar o endereço da central. Neste caso a central é o id ‘00000’, e deve ser executado em todos os nós (servidores), central e filial(is). Como foi somente este endereço que mudou, não há necessidade de trocar o valore de node_id.
@tinymiracle Obrigado. realizei os procedimentos, porém ocorreu seguinte erro no log do symmetrics:
2017-11-17 09:31:59,389 ERROR [SymmetricDS] [SymmetricDS-job-20] Received an error from node 00000 for batch 2762732. Check the outgoing_batch table for more info.
-
-
Sim demora um pouco até a sincronização voltar.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Cadastrar Login