Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

This repository contains the source code and Packer configuration files to create an image, for either Hyper-V or Azure, that contains an instance of the Influx time-series database.

License

Notifications You must be signed in to change notification settings

Calvinverse/resource.metrics.storage

Repository files navigation

resource.metrics.storage

This repository contains the source code necessary to build Ubuntu Hyper-V hard-drives containing the InfluxDb time series database.

Image

The image is created by using the Linux base image and amending it using a Chef cookbook which installs influx.

Contents

In addition to the default applications installed in the template image the following items are also installed and configured:

Configuration

The configuration for the InfluxDb instance comes is all done when the image is created.

Provisioning

No additional configuration is applied other than the default one for the base image.

Logs

No additional configuration is applied other than the default one for the base image.

Metrics

Metrics are collected by Telegraf.

Build, test and release

The build process follows the standard procedure for building Calvinverse images.

Deploy

  • Download the new image to one of your Hyper-V hosts.
  • Create a directory for the image and copy the image VHDX file there.
  • Create a VM that points to the image VHDX file with the following settings
    • Generation: 2
    • RAM: at least 1024 Mb
    • Hard disk: Use existing. Copy the path to the VHDX file
    • Attach the VM to a suitable network
  • Update the VM settings:
    • Enable secure boot. Use the Microsoft UEFI Certificate Authority
    • Attach a DVD image that points to an ISO file containing the settings for the environment. These are normally found in the output of the Calvinverse.Infrastructure repository. Pick the correct ISO for the task, in this case the Linux Consul Client image
    • Disable checkpoints
    • Set the VM to always start
    • Set the VM to shut down on stop
  • Start the VM, it should automatically connect to the correct environment once it has provisioned
  • Set the old Influx instance to no longer receive data
    • ?????
  • Copy the data from the old Influx instance to the new one
    • ????
  • Remove the old VM
    • SSH into the host
    • Issue the consul leave command
    • Shut the machine down with the sudo shutdown now command
    • Once the machine has stopped, delete it

About

This repository contains the source code and Packer configuration files to create an image, for either Hyper-V or Azure, that contains an instance of the Influx time-series database.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published