richardbadman commented on PR #899:
URL: https://github.com/apache/solr-operator/pull/899#issuecomment-6831541143

   I've also ran this locally via kind with the following manifest;
   ```yaml
   ---
   apiVersion: solr.apache.org/v1beta1
   kind: SolrCloud
   metadata:
     name: dev
   spec:
     replicas: 2
     nodeRoleDistribution:
       overseers: 1
       coordinators: 1
     solrJavaMem: "-Xms512m -Xmx512m"
     zookeeperRef:
       provided:
         replicas: 1
         persistence: {}
   ```
   And everything worked as I had hoped;
   
   ```
   kubectl get pods 
   NAME                                                READY   STATUS    
RESTARTS      AGE
   dev-solrcloud-0                                     1/1     Running   6 (33m 
ago)   38m
   dev-solrcloud-1                                     1/1     Running   6 (33m 
ago)   38m
   dev-solrcloud-coordinator-0                         1/1     Running   5 (33m 
ago)   38m
   dev-solrcloud-overseer-0                            1/1     Running   5 (33m 
ago)   38m
   dev-solrcloud-zookeeper-0                           1/1     Running   2 (33m 
ago)   38m
   solr-operator-8554848cc4-b98ld                      1/1     Running   2 (33m 
ago)   39m
   solr-operator-zookeeper-operator-6bb5f99bfc-9p7hd   1/1     Running   1 (34m 
ago)   42m
   ```
   <img width="800" height="307" alt="image" 
src="https://github.com/user-attachments/assets/c2ab4d8a-0237-4a47-9abd-1aa8806b55d7";
 />
   <img width="2680" height="1314" alt="image" 
src="https://github.com/user-attachments/assets/bc289c97-79a5-43d3-a932-9d9cee96ea34";
 />
   
   And after indexing the collection, was able to query it via the coordinator;
   ```
   kubectl port-forward pod/dev-solrcloud-coordinator-0 8984:8983
   Forwarding from 127.0.0.1:8984 -> 8983
   Forwarding from [::1]:8984 -> 8983
   Handling connection for 8984
   ...
   curl -s "localhost:8984/solr/demo/select?q=category_s:books&rows=3" | jq 
'.response.numFound, .response.docs'              ✹ ✭
   191
   [
     {
       "id": "7",
       "name_s": "product 7",
       "category_s": "books",
       "price_f": 28.02,
       "stock_i": 149,
       "_version_": 1881674141288890368,
       "_root_": "7"
     },
   ```
   
   I have just noticed since raising this PR, that something odd is happening 
with the statefulsets where it thinks they aren't up, but the pods are running 
fine and reporting no errors in their logs. So I will look into this;
   ```
   kubectl get statefulset                                                      
                                ✭
   NAME                        READY   AGE
   dev-solrcloud               2/2     38m
   dev-solrcloud-coordinator   0/1     38m
   dev-solrcloud-overseer      0/1     38m
   dev-solrcloud-zookeeper     1/1     38m
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to