Use your own infrastructure
If you want to run FeatBit with your own infrastructure, this guide will show you how to configure each component. This approach gives you more control over your deployment and allows you to use existing infrastructure.
Set Environment Variables
To use your own infrastructure, you need to modify some environment variables for each service. You can find the environment variables for each service in the following links:
- UI Environment Variables (opens in a new tab)
- API Server Environment Variables (opens in a new tab)
- Evaluation Server Environment Variables (opens in a new tab)
- Data Analytics Server Environment Variables (opens in a new tab)
Data Seeding
MongoDB
Check the MongoDB initialization scripts (opens in a new tab) for the database schema and seed data.
Postgres
Check the Postgres initialization scripts (opens in a new tab) for the database schema and seed data.
You should run initialization scripts in version order, from oldest to your version. For example, if you're installing FeatBit v5.0.5, you'd need to run v0.0.0, then v5.0.4, and finally v5.0.5 against your database. The v0.0.0 script is the base, and subsequent scripts like v5.0.4 are migration scripts that apply incremental updates.
Kafka
You need to create the following topics in your kafka:
- featbit-feature-flag-change
- featbit-segment-change
- featbit-insights
- featbit-endusers
Configure appropriate retention policies and partitioning strategies based on your expected data volume and performance requirements.