# Fleet server, connection limits and duplicate agents

**URL:** https://discuss.elastic.co/t/fleet-server-connection-limits-and-duplicate-agents/290771
**Category:** Kibana
**Tags:** fleet
**Created:** [December 2, 2021, 1:47pm UTC](https://discuss.elastic.co/t/fleet-server-connection-limits-and-duplicate-agents/290771 "2021-12-02T13:47:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![blinder](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@blinder](https://discuss.elastic.co/u/blinder)
#### Post date: [December 2, 2021, 1:47pm UTC](https://discuss.elastic.co/t/fleet-server-connection-limits-and-duplicate-agents/290771/1 "2021-12-02T13:47:02Z")

</div>

Hi

We recently enrolled about 300 fleet clients to our On-Prem ECE cluster, enrollment seems to be working fine but duplicates( marked as offline) are spawning en mass. Data are being ingested from machines with double entries and i can unenroll the duplicates based on time last seen. But why is this happening?

In addition to that, about half of the clients are "offline" at any given time with the following error code in the logs

[elastic\_agent][error] Could not communicate with fleet-server Checking API will retry, error: status code: 429, fleet-server returned an error: MaxLimit, message: exceeded the max limit

I have followed the settings guide for the fleet server integration policy and adjusted it to accomodate 5000 client, with no change.

```auto
cache:

  num_counters: 10000    

  max_cost: 10485760     

server.limits:

   policy_throttle: 100ms

   checkin_limit:

     interval: 10ms      

     burst: 2500          

     max: 2601           

   artifact_limit:

     interval: 10ms      

     burst: 2500          

     max: 5000            

   ack_limit:

     interval: 8ms       

     burst: 2500          

     max: 5000            

   enroll_limit:

     interval: 40ms      

     burst: 250           

     max: 500             

server.runtime:

  gc_percent: 20

```

Any ideas?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 30, 2021, 1:47pm UTC](https://discuss.elastic.co/t/fleet-server-connection-limits-and-duplicate-agents/290771/2 "2021-12-30T13:47:19Z")

</div>

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