# Disabling agents

**URL:** <https://discourse.openiap.io/t/disabling-agents/1166>\
**Category:** OpenCore\
**Tags:** agent\
**Created:** [February 15, 2024, 12:41pm UTC](https://discourse.openiap.io/t/disabling-agents/1166 "2024-02-15T12:41:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velinkton](https://discourse.openiap.io/user_avatar/discourse.openiap.io/velinkton/32/931_2.png) [@Velinkton](https://discourse.openiap.io/u/Velinkton)\
**Post date:** [February 15, 2024, 12:41pm UTC](https://discourse.openiap.io/t/disabling-agents/1166/1 "2024-02-15T12:41:50Z")

</div>

I encountered a problem that my NodeRED agents began to disconnect, going into the “missing” status. This began to happen recently when the number of agents increased from 3 to 8 in one day. I couldn’t track how long they work, but it feels like they work for 1-2 days and then turn off

At first I thought that the Linux server did not have enough resources. I added RAM and allocated 2 cores for the processor, but the situation has not changed

What could be causing this problem?

---

<div class="post-metadata">

**Author:** ![Velinkton](https://discourse.openiap.io/user_avatar/discourse.openiap.io/velinkton/32/931_2.png) [@Velinkton](https://discourse.openiap.io/u/Velinkton)\
**Post date:** [February 15, 2024, 12:44pm UTC](https://discourse.openiap.io/t/disabling-agents/1166/2 "2024-02-15T12:44:22Z")

</div>

Dedicated agents disconnected themselves

 ![image](https://discourse.openiap.io/uploads/default/original/2X/0/08d36266e857da10221cfb59e1f62853b83d79a6.png)

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [February 16, 2024, 7:54am UTC](https://discourse.openiap.io/t/disabling-agents/1166/3 "2024-02-16T07:54:00Z")

</div>

Hmm, is it the same one’s that die every time ?  
is the one the dies “new” or does the one of the original 3 also die ?

Do you see any errors that could cause a crash in the logs ?  
( list all dockers and find one of those not running then do get the logs using the id )

```auto
docker ps -a
docker logs <ID>

```

---

<div class="post-metadata">

**Author:** ![Velinkton](https://discourse.openiap.io/user_avatar/discourse.openiap.io/velinkton/32/931_2.png) [@Velinkton](https://discourse.openiap.io/u/Velinkton)\
**Post date:** [February 16, 2024, 8:15am UTC](https://discourse.openiap.io/t/disabling-agents/1166/4 "2024-02-16T08:15:33Z")

</div>

Any agent can stop working, both old and new ones that I added recently. The key here is that this started happening when I added 5 new agents, but I’m not sure if the problem is directly related to this

But it was not possible to get logs of fallen containers, since they are not displayed at all in the list.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [February 16, 2024, 8:41am UTC](https://discourse.openiap.io/t/disabling-agents/1166/5 "2024-02-16T08:41:46Z")

</div>

Then they where deleted, not stopped.  
Most likely that is openflow then, does it happen every 8 hour by any chance ?

If so, it could be the housekeeping job, that among many things also removed agents that has been running for more than 8 hours and does not have the billing tag.  
This feature is enabled if you have enabled multi tenancy and/or have created a “agent” resource ( so you can select between free and other sizes when creating an agent )

![image](https://discourse.openiap.io/uploads/default/original/2X/c/c64f7f3cfda3762ce00e674a45025d55057634bb.png)  
 ![image](https://discourse.openiap.io/uploads/default/original/2X/b/bca5a6c926f186ec3c1db590e5f18eab083e707a.png)

![image](https://discourse.openiap.io/uploads/default/original/2X/8/804882ac463ae9242585619131279e972ca7352a.png)

---

<div class="post-metadata">

**Author:** ![Velinkton](https://discourse.openiap.io/user_avatar/discourse.openiap.io/velinkton/32/931_2.png) [@Velinkton](https://discourse.openiap.io/u/Velinkton)\
**Post date:** [February 16, 2024, 8:52am UTC](https://discourse.openiap.io/t/disabling-agents/1166/6 "2024-02-16T08:52:31Z")

</div>

Yes, I created this resource on February 12th. And on the same day problems began with the agents. I created a resource using the ensurecommon button (I was just studying the possibilities of OpenFlow in my free time).

I deleted the resource and when creating an agent I can no longer choose a paid plan. I’ll be monitoring the agents’ behavior for a couple of days. I will post the results in this topic

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [February 16, 2024, 8:57am UTC](https://discourse.openiap.io/t/disabling-agents/1166/7 "2024-02-16T08:57:02Z")

</div>

No, create the resources, and then assign a plan to all agents.  
( you need to select a plan and click save, and then stop/start the agent to “tag” it )

---

<div class="post-metadata">

**Author:** ![Velinkton](https://discourse.openiap.io/user_avatar/discourse.openiap.io/velinkton/32/931_2.png) [@Velinkton](https://discourse.openiap.io/u/Velinkton)\
**Post date:** [February 16, 2024, 9:12am UTC](https://discourse.openiap.io/t/disabling-agents/1166/8 "2024-02-16T09:12:30Z")

</div>

Returned the resource back, set the free plan, clicked save, and restarted the agents

It turns out that after such manipulations the housekeeping job will not disable my agents every 8 hours?

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [February 16, 2024, 9:18am UTC](https://discourse.openiap.io/t/disabling-agents/1166/9 "2024-02-16T09:18:23Z")

</div>

No set them to a **NON** free plan … or they will get removed after 8 hours ;-D  
just like on [app.openiap.io](https://app.openiap.io)

---

<div class="post-metadata">

**Author:** ![Velinkton](https://discourse.openiap.io/user_avatar/discourse.openiap.io/velinkton/32/931_2.png) [@Velinkton](https://discourse.openiap.io/u/Velinkton)\
**Post date:** [February 16, 2024, 9:32am UTC](https://discourse.openiap.io/t/disabling-agents/1166/10 "2024-02-16T09:32:05Z")

</div>

Okay, I understand 😃  
Thanks for the help

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [February 19, 2024, 9:32am UTC](https://discourse.openiap.io/t/disabling-agents/1166/11 "2024-02-19T09:32:07Z")

</div>

Closed on February 19, 2024, 9:32am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
