Граф коммитов

6 Коммитов

Автор SHA1 Сообщение Дата
Kevin Lugo 1f5e41b085
Passing Extension Version to VMWatch (#52)
* Added --apphealth-version flag to VMWatch with AppHealth version from manifest.xml

* - Validated Extension Version on existing VMWatch.
- Created bash function to extract Version from manifest.xml.
- GetExtensionManifestVersion now first attempts to get Extension Version from Version passed at build time and uses manifest.xml file as fallback.
2024-01-18 14:02:30 -08:00
dpoole73 7d3df06186
Resource governance, heartbeat and dev container changes (#43)
* Bootstrapping has no integration test regressions

* Add cleanup of VMWatch process during shutdown signals and upon other commands, plus integration test template

* Added integration tests for VMWatch

* Linting

* Fix file vet issues

* attempt to fix handler command: install - creates the data dir

* nit integration tests

* Use handlerenvironment to dictate vmwatch signal folder and verbose log file paths

* Include missing changes in previous commit

* Remove unnecessary changes

* Try to fix docker installation error in go workflow

* Fix integration tests

* Update HandlerManifest with process names for guest agent to monitor cpu/memory usage

* Run linting

* Remove cpu/memory limits in HandlerManifest + update VMWatch binary directory to bin/VMWatch/ + implement VMWatch process retries + update integration tests

* Update test.Dockerfile

* Rename workflow

* Add formatting & linting

* Add logic to do retries on failed tests + don't fail fast

* Minor nits

* Update integration tests + code changes to resolve comments regarding execution of process

* Formatting + Linting + Vet

* Add logic for recover and defer for executing VMWatch. Proper close and read of channel. Also only  every 60 seconds

* fix integration tests

* Bump to v2.0.7

* revert unnecessary changes to schema.go

* Small fix to killVMWatch

* Fix logic for killing VMWatch

* v2.0.8 Added Support for dynamic EventsFolder directory from extension Handler Environment (#39)

* - moved handlerenv.go and seqno.go from "github.com/Azure/azure-docker-extension/pkg/vmextension"
- Added EventsFolder with other missing parameters.

* -removed vmextension lib dependency from VMwatch and other Files.
- Updates HandlerEnviroment.json test file.
- Updated VMwatch Integration Tests.

* - Bump to v2.0.8

* initial devcontainer changes

changes:

1. add devcontainer condig
2. add vscode build config
3. add makefile target to set up the appropriate stuff in the container
4. update some line endings and add gitattributes so script run
5. fix what seems to be a bug in fake-waagent script as it doesn't work without this fix for me

* update binaries and config to latest

* Resource governance, heartbeat and dev container changes

The main feature change here is the addition of resource governance for linux via cgroups.

We discover the current cgroup and add a sub cgroup for our purposes (limiting cpu to 1% and memory to 40MB)

I also added support for detecting a stuck vmwatch using the heartbeat file and implemented the same logic for restarts from the windows version (3 restarts per 3 hours)

As part of the development of this, I added support for devcontainer execution so we can step through the code from a dev machine into either a WSL session or a linux vm with tools installed.

I added integration tests to check process exit, OOM and cpu throttling.  These changes required a few changes to the makefile and scripts.

I also updated the vmwatch binaries and added a script to download the latest ones as well

I updated the govendor files using the tool it told me to run I hope I did this right

* feedback

* feedback

* Run 'go mod edit -go=1.18 to be conistent with linux extensions repo

* Run linting/formatting

* Fix merge nits to merge conflicts

* Fix app health handler.log directory path

* Change to applicationhealth-extension

* Mistakenly added two VMWatch substatus items

* Adding filtering for tests which can only run on a real linux host (not WSL or docker)

continuing investigation...

* fix time from minutes to hours plus add makefile target to create zip file (for use in testing)

* feedback

* feedback

* add readme

* updated vmwatch version, config schema and commandline

* typo

* test fixes

* test fixes

* add helper script to upload binaries to storage

* change container name

* feedback

* feedback

* typo

---------

Co-authored-by: Frank Pang <frankpang@microsoft.com>
Co-authored-by: frank-pang-msft <92764154+frank-pang-msft@users.noreply.github.com>
Co-authored-by: klugorosado <142627157+klugorosado@users.noreply.github.com>
2023-11-30 18:38:07 -08:00
klugorosado 4867d78b2d
- Cleaned up Github Workflow flow Godep and added correct Go Version (Go 1.18.10) (#41)
- Changed Makefile to build to Go Moduled instead of govvv.
- Removed Godep dependencies.
- ran go mod tidy -> go mod vendor
2023-10-17 13:25:55 -07:00
Kai Lüke 674c230913
Makefile: Always build static binaries (#31)
Static binaries were use for arm64 through the cross-compilation but not
for amd64. This added a dependency on some system libraries that the
host OS should provide, such as glibc with a certain minimal version.

To align the amd64 with the arm64 binary and reduce requirements for the
host OS, always build static binaries. The result was checked with
running "file bin/applicationhealth-*".
2023-08-01 14:37:05 -07:00
frank-pang-msft 3b4c540c2b
Update shim and Makefile for ARM64 support (#9) 2022-02-24 11:55:30 -08:00
nkuchta dc2443597c Adding extension and tests 2018-06-26 12:45:05 -07:00