Code Monkey home page Code Monkey logo

questdb-packer-ami's Introduction

QuestDB AMI Build Specification

This repository contains scripts and resources that can be used to build your own AMI with QuestDB. The AMI is based on Amazon Linux 2 and generated using Packer from HashiCorp.

Prerequisites

In order to use this template, you will need:

Repository structure

└── src
    ├── assets
    │   ├── bashrc          # Used to set 'JAVA_HOME'
    │   ├── cloudwatch.json # Configuration which enables logs forwarding to AWS CloudWatch
    │   ├── logrotate.conf  # Configuration file for logrotate
    │   ├── rsyslog.conf    # Configuration file for rsyslog
    │   └── systemd.service # Service file to run QuestDB via systemd
    ├── config
    │   └── server.conf     # Configuration file for QuestDB
    ├── scripts
    │   └── per-boot.sh     # Script that runs every time the instance is started (CloudWatch)
    ├── build.bash          # Script that automates the installation of all the components on the AMI
    └── template.json       # Template file for Packer

Build the AMI

  1. Clone this repository:
git clone https://github.com/questdb/questdb-packer-ami.git
  1. Navigate to src and run packer:
cd questdb-packer-ami/src
packer build template.json

That's it, you can now create a new EC2 instance using the AMI you just built.

Usage

Configuration

The AMI built using this template is very generic. You might want to change the database configuration file:

src/config/server.conf

For all the properties and values that you can set, please check our documentation.

Logs and AWS CloudWatch

This AMI uses logrotate to automatically trim and archive logs generated by QuestDB. The AWS CloudWatch agent is also preinstalled and already configured. If you want the logs to be available on your CloudWatch dashboard, you need to:

  1. Make sure you run your EC2 with an instance profile that has the CloudWatchAgentServerPolicy IAM policy
  2. Create the necessary CloudWatch resources: /questdb-<instance-id> (with leading slash) log group and questdb-systemd-service.log log stream (example of instance id: i-0c1386329d00506a2)

Resources

Complete references are available in the Documentation.

Get started:

Develop:

Concepts:

Support / Contact

Slack channel

Roadmap

Our roadmap is here

Contribution

Feel free to contribute to the project by forking the repository and submitting pull requests. Please make sure you have read our contributing guide.

questdb-packer-ami's People

Contributors

amunra avatar mpsq avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

time-science

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.