Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC Do not merge **** CCD-5640 Update values.preview.template.yaml point to test ES cloud #1492

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
13f6435
Update values.preview.template.yaml
nathan-clark Jul 22, 2024
401f962
Update values.preview.template.yaml
nathan-clark Jul 23, 2024
fd9e04c
Update values.preview.template.yaml
nathan-clark Jul 23, 2024
0c53a47
Update values.preview.template.yaml
nathan-clark Jul 23, 2024
fb6a358
Update values.preview.template.yaml
nathan-clark Jul 23, 2024
353ac2c
Update ElasticSearchConfiguration.java
nathan-clark Jul 24, 2024
a1fd071
Update ElasticSearchConfiguration.java
nathan-clark Jul 24, 2024
77068b2
Update ElasticSearchConfiguration.java
nathan-clark Jul 24, 2024
ae9a567
Update ElasticSearchConfiguration.java
nathan-clark Jul 24, 2024
bce5ce4
update test file to point to external es
RebeccaBaker Jul 25, 2024
dc99218
Update values.preview.template.yaml
nathan-clark Jul 31, 2024
7566f12
fix for how the HttpHost is called (see https://discuss.elastic.co/t/…
patelila Jul 31, 2024
7fc1eea
Merge remote-tracking branch 'origin/nathan-clark-patch-3' into natha…
patelila Jul 31, 2024
6cd4d0a
Trying out removing _doc from the request as per https://stackoverflo…
patelila Jul 31, 2024
26bdb41
revert change
patelila Jul 31, 2024
1987c8f
trying out changes for compatibility as described: https://www.elasti…
patelila Aug 1, 2024
1a3de1b
moved code dowm.
patelila Aug 1, 2024
95d7692
using 7.17.4 everywhere.
patelila Aug 1, 2024
311af2d
using 7.17.22 latest version.
patelila Aug 1, 2024
aa707c3
using hlrc now, that has the setApiCompatibilityMode(true)
patelila Aug 1, 2024
a6dd952
logging on I hope
patelila Aug 1, 2024
c499af2
same versions Rest-Client
patelila Aug 2, 2024
045fcbd
log
patelila Aug 2, 2024
1e7ee29
add log before call to output request
patelila Aug 2, 2024
5118e84
add temp log before call to output request
patelila Aug 2, 2024
be1e6cc
Try out setting writeindex from null to false.
patelila Aug 5, 2024
3bb069c
to make it easier to read
patelila Aug 5, 2024
9a64293
changed info to debug logging
patelila Aug 5, 2024
dcbb898
Merge pull request #1496 from hmcts/CCD-5640-Compatibility-test-elast…
nathan-clark Aug 5, 2024
c25dbf1
empty commit to trigger build
dinesh1patel Aug 21, 2024
06d35a0
Merge branch 'master' into nathan-clark-patch-3
bharatkumarpatel1 Aug 22, 2024
7ea65c0
empty commit to trigger build
dinesh1patel Aug 22, 2024
b09d130
empty commit to trigger build
dinesh1patel Aug 22, 2024
eb005b6
Update build.gradle
RebeccaBaker Aug 28, 2024
84ff37d
Update values.preview.template.yaml
nathan-clark Sep 2, 2024
4015bcc
Merge branch 'master' into nathan-clark-patch-3
bharatkumarpatel1 Sep 3, 2024
dfff16b
empty commit to trigger build
dinesh1patel Sep 4, 2024
882bed4
empty commit to trigger build
dinesh1patel Sep 4, 2024
d1cf9e8
Update build.gradle
nathan-clark Sep 5, 2024
dbeacef
Update HighLevelCCDElasticClient.java
nathan-clark Sep 5, 2024
9fd5b6b
Update ElasticSearchConfiguration.java
nathan-clark Sep 5, 2024
68ac371
Update ElasticSearchConfiguration.java
nathan-clark Sep 5, 2024
15b0393
Update logback.xml
nathan-clark Sep 5, 2024
c4a1829
Update ElasticSearchConfiguration.java
nathan-clark Sep 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion charts/ccd-definition-store-api/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ java:
# enable whenever required and provide host url to match with corresponding data-store-api
ELASTIC_SEARCH_ENABLED: true

ELASTIC_SEARCH_HOST: ccd-data-store-api-pr-1260-es-master
ELASTIC_SEARCH_HOST: elastic-poc-ccd.es.privatelink.uksouth.azure.elastic-cloud.com
ELASTIC_SEARCH_PORT: 443
ELASTIC_SEARCH_SCHEME: https

USER_PROFILE_HOST: http://ccd-user-profile-api-pr-399-java

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestClientBuilder;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.client.RestHighLevelClientBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
Expand Down Expand Up @@ -34,12 +35,20 @@ public class ElasticSearchConfiguration {
@Bean
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public RestHighLevelClient restHighLevelClient() {
RestClientBuilder builder = RestClient.builder(new HttpHost(config.getHost(), config.getPort()));
RestClientBuilder builder = RestClient.builder(new HttpHost(
config.getHost(), config.getPort(), config.getScheme()));
RestClientBuilder.RequestConfigCallback requestConfigCallback = requestConfigBuilder ->
requestConfigBuilder.setConnectTimeout(5000)
.setSocketTimeout(60000);
builder.setRequestConfigCallback(requestConfigCallback);
return new RestHighLevelClient(builder);
RestClient restClient = builder.build();
// Create the HLRC
RestHighLevelClient hlrc = new RestHighLevelClientBuilder(restClient)
.setApiCompatibilityMode(true)
.build();
// hlrc and esClient share the same httpClient

return hlrc;
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
elasticsearch:
host: localhost
port: 9200
scheme: http
host: ${ELASTIC_SEARCH_HOST:localhost}
port: ${ELASTIC_SEARCH_PORT:9200}
nathan-clark marked this conversation as resolved.
Show resolved Hide resolved
scheme: ${ELASTIC_SEARCH_SCHEME:http}
enabled: true
indexShards: 8
indexShardsReplicas: 3
failImportIfError: true
dynamic: true
dynamic: true