Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

navikt/pam-internalad-indexer

Repository files navigation

build-deploy-dev deploy-prod

pam-internalad-indexer

Prerequisite

  • Elasticsearch
  • Kafka with teampam.stilling-intern-1 topic

How to run in dev

./gradlew clean build
docker-compose up --build

run Application.java in intellij

How to reindex

Enable reindex-mode by setting the flag INDEXER_REINDEX=true, and set/change INDEXER_REINDEX_INDEXNAME=new_index_name, also change the groupId to a new group ADLISTENER_REINDEX_GROUP_ID=new_group_id_name. Set the offset-timestamp INDEXER_REINDEX_MODE_FROM to a timestamp, if you want to reindex from a certain time.

Redeploy internal-ad-indexer. On restart the app will be in reindex mode, it will spawn another consumer and start the reindex process. When it is finished, change the groupId to the same as the reindex group, and switch the alias to point to the new index.

About

internal ad indexer

Resources

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 5