Skip to content

Instantly share code, notes, and snippets.

View janhoy's full-sized avatar

Jan Høydahl janhoy

View GitHub Profile
@janhoy
janhoy / docker-compose.prod.yml.diff
Created June 10, 2020 12:33
Quepid docker-compose with AWS RDS
Index: docker-compose.prod.yml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- docker-compose.prod.yml (revision 6d9f483b484d920e577a2ff1c4fe185067dcbe69)
+++ docker-compose.prod.yml (date 1591792329875)
@@ -1,18 +1,8 @@
# Docker Compose file for running Quepid in Production mode.
# Allows you to update your Quepid installation over time.
@janhoy
janhoy / log.txt
Created June 10, 2020 11:20
Upgrade to 6.2 prerelease migration failure
$ docker-compose run --rm app bin/rake db:migrate
Pulling app (o19s/quepid:6.2-prerelease)...
6.2-prerelease: Pulling from o19s/quepid
7568c21980bd: Pull complete
4a9f2207c812: Pull complete
6fe350d2b140: Pull complete
d95a2fdc8b3d: Pull complete
760eb225f9e8: Pull complete
6ba1f6b9517b: Pull complete
ce86e3018f7e: Pull complete
@janhoy
janhoy / Dockerfile
Last active June 10, 2020 10:18
quepid-full-failure
FROM o19s/quepid:latest
# Install dependencies
WORKDIR /srv/app
COPY Gemfile Gemfile.lock ./
RUN bundle install
# Install dependencies
WORKDIR /srv/app
COPY Gemfile Gemfile.lock ./
RUN bundle install
@janhoy
janhoy / responses.md
Last active May 29, 2020 07:30
Solr JWT responses

Some error responses from Solr JWT

There are many other corner cases, but here are some of the most common authentication responses from Solr.

If Authorization is configured in Solr, and a call is rejected by authorization, then a HTTP 403 response is returned

Token expired

HTTP/2 401 
content-security-policy: default-src 'none'; base-uri 'none'; connect-src 'self'; form-action 'self'; font-src 'self'; frame-ancestors 'none'; img-src 'self'; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; worker-src 'self';
@janhoy
janhoy / k8s-cluster.yaml
Created April 28, 2020 15:15
Solr kubernetes tutorial with Mac and Windows cmdline examples
apiVersion: solr.bloomberg.com/v1beta1
kind: SolrCloud
metadata:
name: example
spec:
replicas: 3
solrImage:
tag: "8.3"
solrJavaMem: "-Xms300m -Xmx300m"
<h1>Lucene/Solr Github PR report</h1>
<p>Number of open Pull Requests: 272</p>
<h2>PRs lacking JIRA reference in title (49)</h2>
<ul>
<li><a href="https://github.com/apache/lucene-solr/pull/1424">#1424: 2020-04-11 Enable shared store via system property only</a> (andyvuong)</li>
<li><a href="https://github.com/apache/lucene-solr/pull/1420">#1420: 2020-04-09 package store PUT should be idempotent</a> (noblepaul)</li>
@janhoy
janhoy / YASA.md
Last active August 4, 2021 17:16
How to test YASA with Solr in 3 minutes
@janhoy
janhoy / gist:ed54796384305d975621cecfb73f5ed9
Created April 21, 2020 21:20
Cross check of Lucene PMC members between roster and website and activity level
Legend:
* members with a post to private@ last 12M
- members who are not listed on whoweare.html
* Joel Bernstein (jbernste@...)
* Andrzej Bialecki (ab@...)
*- Ishan Chattopadhyaya
*- Cao Manh Dat (datcm@...)
* James Dyer (jdyer@...)
* Shai Erera (shaie@...)

Solr on Kubernetes on local Mac

This tutorial shows how to setup Solr under Kubernetes on your local mac. The plan is as follows:

  1. Setup Docker for Mac with K8S
  2. Install an Ingress Controller to reach the cluster on localhost
  3. Install Solr Operator
  4. Start your Solr cluster
  5. Create a collection and index some docuemnts
  6. Scale from 3 to 5 nodes
@janhoy
janhoy / solr-ssl-exception.txt
Created December 19, 2019 13:37
Solr SSL Kevin patch
*** [WARN] *** Your open file limit is currently 256.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
*** [WARN] *** Your Max Processes Limit is currently 5568.
It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh
OpenJDK 64-Bit Server VM warning: -XX:+UseLargePages not supported in this VM
2019-12-19 13:33:43.711 INFO (main) [ ] o.e.j.u.log Logging initialized @1009ms to org.eclipse.jetty.util.log.Slf4jLog
2019-12-19 13:33:43.898 INFO (main) [ ] o.e.j.s.Server jetty-9.4.24.v20191120; built: 2019-11-20T21:37:49.771Z; git: 363d5f2df3a8a28de40604320230664b9c793c16; jvm 11.0.5+10
2019-12-19 13:33:43.913 INFO (main) [ ] o.e.j.d.p.ScanningAppProvider Deployment monitor [file:///Users/janhoy/git/lucene-solr/solr/server/contexts/] at interval 0