It should be near real-time.

I wonder if the agent logs may provide some direction.

For simple testing the code can be updated from the agent cache itself, but
this would be overwritten at the next check in with the server.

On Sun, May 20, 2018 at 6:43 PM, <xiang....@sky-data.cn> wrote:

> In my case, i define a stack and install a service.
>
> For start/stop, i need to do some test, so i edit service script under
> stack.
>
> Then restart server, not sync.
>
> Then restart agent, still not.
>
> Does it need time to sync or it is real-time?
>
> ------------------------------
> *From: *"David Quiroga" <quirogadf4w...@gmail.com>
> *To: *"user" <user@ambari.apache.org>
> *Sent: *Monday, May 21, 2018 1:20:31 AM
> *Subject: *Re: when agent sync service scripts
>
> The agent code cache should update when the agents check-in to the server.
> Believe check-in occurs after the server is restarted and/or after an
> agent is restarted.
>
> Is the python? code in the standard location ambari-server/resources/
> common-services/YOUR_SERVICE/VERSION/package/scripts/
> Or what type of code update are you attempting.
>
>
> On Sat, May 19, 2018 at 1:37 AM, <xiang....@sky-data.cn> wrote:
>
>> I install a custom stack in VM, then i want to update some codes for a
>> installed service.
>>
>> But when i restart server, the codes in agent does not update.
>>
>> Then i restart agent, still failed.
>>
>> So when agent sync service scripts?
>>
>> Thanks
>>
>
>

Reply via email to