Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

451
Visualizações
GridFS with location-based sharding

Is there any way to shard the gridFS files and chunks based on a location information ?

I want to setup a mongo configuration with sharding and replication for handling multi-sites and guaranteeing that the data produced on one site remains accessible even if the sites are isolated.

I followed the following documentation from mongo and it works just perfectly for the standard collections but not for GridFS.

https://docs.mongodb.com/v3.2/tutorial/sharding-segmenting-data-by-location/

All I found for GridFS was _id based or file_id based sharding. By now the only solution I have would be to use different GridFS prefixes which means different collections and to shard them each on a given site.

I'm using :

  • mogodb 3.2
  • Java driver
  • Python driver

Thanks for any advice.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I found an answer on StackExchange : How to define shardKey on GridFS collections to achieve Location/Data Centre affinity (MongoDB)

Given that the only possibility is to shard the chunks on the ID, the idea is to use MongoGridFSCreateOptions to force a location-based ID to the chunks.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda