fleet/cmd
Lucas Manuel Rodriguez 6ea8f49f22
Replace fasthttp with Go's stdlib (reduces memory footprint) (#16922)
#16423

- To reduce memory footprint I'm replacing fasthttp with Go's stdlib
http package:
- To reduce CPU usage while Fleet is down am adding a connection check
before sending logs (otherwise osquery-perf spends a lot of CPU
marshaling JSON).

With fasthttp (memory start growing when I bring Fleet down, because it
starts to buffer logs):

![output_fasthttp_cut](https://github.com/fleetdm/fleet/assets/2073526/05161817-581c-4518-9751-7c014160e139)
With golang (memory start growing when I bring Fleet down, because it
starts to buffer logs):

![output_go_cut](https://github.com/fleetdm/fleet/assets/2073526/abdf899b-a812-478b-b638-28336513456a)
2024-02-19 11:33:19 -03:00
..
cpe Updating CPE generator to use new NVD API. (#15018) 2023-11-20 16:10:00 -06:00
cve Use NVD API 2.0 to download CVE information (#15102) 2023-11-21 12:30:07 -06:00
fleet Return 405 when receiving POST request on the route path (#16750) 2024-02-14 12:40:43 -03:00
fleetctl Add validation to reject requests to enqueue scripts for plain osquery hosts (#16893) 2024-02-15 14:34:16 -06:00
macoffice Feature 9386: Parse the Mac Office release notes for vulnerability processing (#9993) 2023-02-24 14:18:25 -04:00
msrc Switching from FixedBuild to FixedBuilds (part 3 of 3). (#16478) 2024-01-30 15:00:22 -06:00
osquery-perf Replace fasthttp with Go's stdlib (reduces memory footprint) (#16922) 2024-02-19 11:33:19 -03:00